Class ConsoleDirectiveModel
java.lang.Object
org.apache.juneau.console.freemarker.ConsoleDirectiveModel
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public final class ConsoleDirectiveModel
extends Object
implements freemarker.template.TemplateDirectiveModel
The
<@console> document-shell FreeMarker directive.
Renders its body into the per-render PageCapture (theme, navigation, header/footer slots, the banner region
before <@main/>), then writes the document: the server-rendered <head>, the <body> tag, the
#juneau-page contract island, one <template> per markup body, the juneau-console.js shell,
and the server-emitted scripts. The shell renders the header, nav, cards and footer from the contract.
Example:
<@console brand="Release Manager" icon="/app/logo.svg" title="Releases"> <@navigation> <@node id="home" label="Home" href="/home"/> </@navigation> <@main/> <@footer text="ACME"/> </@console>
- 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
-