我正在看露天的默认模块和模板。其中大多数(至少我看过)以<@standalone>
指令开头。我在docs中搜索过它,但没有结果。
此具体指令的含义是什么?
在他们的文档或其他地方是否有所有露天的freemarker指令列表?
答案 0 :(得分:2)
<@standalone>
指令由org.springframework.extensions.directives.StandaloneWebScriptWrapper类提供。
完整的JavaDoc读取:
/**
* <p>This FreeMarker Directive can be used as the outer-wrapper in a WebScript FreeMarker template to add the the
* {@link OutputCSSContentModelElement} and {@link OutputJavaScriptContentModelElement} instances into the {@link ExtensibilityModel}
* when the WebScript is not processed within the context of a {@link Page}. This ensures that any dependency files are
* loaded into the page.</p>
* <p>TODO: Currently this only outputs the JS and CSS deferred content model elements. This could be further enhanced to add
* additional content elements that set up the structure of a page</p>
*
* @author David Draper
*/
我所知道的所有FreeMarker指令的完整列表 - 无论是FreeMarker,Surf还是Alfresco的一部分。