类 TemplateRegionListDirective

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

@Component public class TemplateRegionListDirective extends AbstractTemplateDirective
templateRegionList 模板文件页面可视化区域列表指令

参数列表

  • path:文件路径

返回结果

  • list:可视化区域id列表

使用示例

<@tools.templateRegionList path='index.html'><#list list as a>${a}<#sep>,</#list></@tools.templateRegionList>

<script>
 fetch('${site.dynamicPath}api/directive/tools/templateRegionList?path=index.html',{"headers":{"appToken":"接口访问授权Token"}}).then(res => res.json()).then(data=>{
   console.log(data);
 });
 </script>
 
  • 字段详细资料

    • REGION_PATTERN

      public static final Pattern REGION_PATTERN
  • 构造器详细资料

    • TemplateRegionListDirective

      public TemplateRegionListDirective()
  • 方法详细资料