Class TopicDirectiveModel
java.lang.Object
org.apache.juneau.console.freemarker.TopicDirectiveModel
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public final class TopicDirectiveModel
extends Object
implements freemarker.template.TemplateDirectiveModel
<@topic name="..." retain=true|false publisher="script|server|ribbon"/>: declares a page-level custom topic
in the contract's topics list. The FTL twin of PageSpec.topic(TopicDecl); the two union.
Example:
<@page> <@topic name="app.region-picked" retain=true publisher="script"/> <@card type="html" id="region" subscribes="app.region-picked">...</@card> </@page>
- 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
-