类 TemplatePlaceListDirective

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

@Component public class TemplatePlaceListDirective extends AbstractTemplateDirective
templatePlaceList 模板文件页面片段列表获取指令

参数列表

  • path:文件路径

返回结果

  • list:文件路径列表

使用示例

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

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

    • PLACE_PATTERN

      public static final Pattern PLACE_PATTERN
    • diyComponent

      private DiyComponent diyComponent
  • 构造器详细资料

    • TemplatePlaceListDirective

      public TemplatePlaceListDirective()
  • 方法详细资料