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