@Component public class PublishPageDirective extends AbstractTaskDirective
参数列表
path
:页面路径,默认值"/"
返回结果
map
map类型,键值页面路径,值为生成结果
<@task.publishPage><#list map as k,v>${k}:${v}<#sep>,</#list></@task.publishPage>
<script> $.getJSON('${site.dynamicPath}api/directive/task/publishPage?path=&appToken=接口访问授权Token', function(data){ console.log(data); }); </script>
限定符和类型 | 字段和说明 |
---|---|
private MetadataComponent |
metadataComponent |
private TemplateComponent |
templateComponent |
siteComponent
log
构造器和说明 |
---|
PublishPageDirective() |
限定符和类型 | 方法和说明 |
---|---|
private java.util.Map<java.lang.String,java.lang.Boolean> |
deal(SysSite site,
RenderHandler handler,
java.lang.String path) |
void |
execute(RenderHandler handler) |
execute, getApp, getSite
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
private TemplateComponent templateComponent
private MetadataComponent metadataComponent
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
private java.util.Map<java.lang.String,java.lang.Boolean> deal(SysSite site, RenderHandler handler, java.lang.String path) throws java.io.IOException
java.io.IOException