Class NavigationDirectiveModel
java.lang.Object
org.apache.juneau.console.freemarker.NavigationDirectiveModel
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public final class NavigationDirectiveModel
extends Object
implements freemarker.template.TemplateDirectiveModel
The
<@navigation> console FreeMarker directive: opens the nav tree on the PageCapture.
Nested <@node>s add nav[] entries of any depth; the shell renders the nav and sets
aria-current. An omitted layout= leaves navLayout out of the contract (the shell defaults
to horizontal). format=, any unknown attribute, and nesting inside another <@navigation> or outside
<@console> are all rejected (fail closed).
- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe shared-variable name this directive registers under.Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Method Summary
-
Field Details
-
NAME
The shared-variable name this directive registers under.- See Also:
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException - Specified by:
executein interfacefreemarker.template.TemplateDirectiveModel- Throws:
freemarker.template.TemplateExceptionIOException
-