Class PageDirectiveModel

java.lang.Object
org.apache.juneau.console.freemarker.PageDirectiveModel
All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public final class PageDirectiveModel extends Object implements freemarker.template.TemplateDirectiveModel
The <@page> shared FreeMarker directive: capture the nested body into PageCapture, resolve the toolkit= packs, then include the consumer chrome template. A child .ftlh file is the page call — it needs no leading include.

<@page> is the outermost console directive; it must not be nested or repeated. The chrome template it includes is expected to render exactly one <@console>, which in turn renders the page contract.

Since:
10.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The shared-variable name this directive registers under.

    Fields inherited from interface freemarker.template.TemplateModel

    NOTHING
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException