类 FileHistoryContentDirective

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

@Component public class FileHistoryContentDirective extends AbstractTemplateDirective
fileHistoryContent 文件修改历史内容获取指令

参数列表

  • type:文件类型【file,task,template】,默认template
  • path:文件路径

返回结果

  • object:文件内容文本

使用示例

<@tools.fileHistoryContent type='file' path='index.html/2020-01-01_01-01-000000'>${object}</@tools.fileHistoryContent>

<script>
 fetch('${site.dynamicPath}api/directive/tools/fileHistoryContent?type=file&path=index.html/2020-01-01_01-01-000000',{"headers":{"appToken":"接口访问授权Token"}}).then(res => res.json()).then(data=>{
   console.log(data);
 });
 </script>
 
  • 构造器详细资料

    • FileHistoryContentDirective

      public FileHistoryContentDirective()
  • 方法详细资料