@Component public class VersionDirective extends AbstractTemplateDirective
返回结果
cms
:cms版本
revision
:修订版
authorizationEdition
:使用授权
authorizationStartDate
:授权起始日期
authorizationEndDate
:授权结束日期
authorizationOrganization
:授权单位
cluster
:节点id
master
:是否管理节点【true:管理节点,false:普通节点】
<@tools.version path='/'>${a.fileName}</@tools.version>
<script> $.getJSON('${site.dynamicPath}api/directive/tools/version', function(data){ console.log(data.cms); }); </script>
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
VersionDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException