Class HasToolkitMethodModel
java.lang.Object
org.apache.juneau.console.freemarker.HasToolkitMethodModel
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
public final class HasToolkitMethodModel
extends Object
implements freemarker.template.TemplateMethodModelEx
The
jcHasToolkit(name) FreeMarker method: whether the current <@page toolkit=…> lists
name. Lets a chrome check which toolkits are active so it can emit toolkit-specific markup.
Example:
<#if jcHasToolkit("views")> <link rel="stylesheet" href="/app/views-extras.css"> </#if>
Only toolkit= counts. Packs that cards require (for example "datatables-glue" for a
type="datatables" card) are loaded but don't make jcHasToolkit return
- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe shared-variable name this method registers under.Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Method Summary
-
Field Details
-
NAME
The shared-variable name this method registers under.- See Also:
-
-
Method Details
-
exec
- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException
-