类 TemplateRegionListDirective

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

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

参数列表

parameter list

パラメータリスト

  • path:文件路径

返回结果

return result

戻り値

  • list:可视化区域id列表

使用示例

usage example

使用例

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

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

    • REGION_PATTERN

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

    • TemplateRegionListDirective

      public TemplateRegionListDirective()
  • 方法详细资料