类 IncludeRegionDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class IncludeRegionDirective extends AbstractTemplateDirective
includeRegion 包含diy区域指令

参数列表

parameter list

パラメータリスト

  • id:布局id

打印包含结果

使用示例

usage example

使用例

<@tools.includeRegion id='00000000-0000-0000-0000-000000000000' categoryId=1/>

  • 字段详细资料

  • 构造器详细资料

    • IncludeRegionDirective

      public IncludeRegionDirective()
  • 方法详细资料

    • execute

      public void execute(freemarker.core.Environment environment, Map parameters, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException
      指定者:
      execute 在接口中 freemarker.template.TemplateDirectiveModel
      覆盖:
      execute 在类中 BaseTemplateDirective
      抛出:
      freemarker.template.TemplateException
      IOException
    • httpEnabled

      public boolean httpEnabled()
      覆盖:
      httpEnabled 在类中 BaseTemplateDirective
      返回:
      whether to enable http
    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException