类 PlaceMetadataDirective

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

@Component public class PlaceMetadataDirective extends AbstractTemplateDirective
placeMetadata 页面片段元数据获取指令

参数列表

  • path:模板路径
  • lang:语言

返回结果

使用示例

<@tools.placeMetadata path='00000000-0000-0000-0000-000000000000'>${object.alias}</@tools.placeMetadata>

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

  • 构造器详细资料

    • PlaceMetadataDirective

      public PlaceMetadataDirective()
  • 方法详细资料