Class MainDirectiveModel
java.lang.Object
org.apache.juneau.console.freemarker.MainDirectiveModel
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public final class MainDirectiveModel
extends Object
implements freemarker.template.TemplateDirectiveModel
The
<@main/> console FreeMarker directive: the positional placeholder that renders the captured page body
inside exactly one <main class="jc-main">.
<@main/> is a position marker. Markup authored between <@console> and <@main/> becomes the
header.slots.banner template, and the page's cards render into <main> in the shell. It is
self-closing — it takes no body of its own, and it has no attributes.
- 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
-