类 IncludePlaceDirective

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

@Component public class IncludePlaceDirective extends AbstractTemplateDirective
includePlace 包含页面片段指令

上下文变量

  • lang:语言

参数列表

  • path:路径

打印包含结果

使用示例

<#assign lang="cn"/> <@tools.includePlace path='/00000000-0000-0000-0000-000000000000'/>

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

  • 构造器详细资料

    • IncludePlaceDirective

      public IncludePlaceDirective()
  • 方法详细资料