类 FileHistoryContentDirective

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

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

参数列表

parameter list

パラメータリスト

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

返回结果

return result

戻り値

  • object:文件内容文本

使用示例

usage example

使用例

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

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

    • FileHistoryContentDirective

      public FileHistoryContentDirective()
  • 方法详细资料