public class StandaloneWebScriptWrapper extends AbstractDependencyExtensibilityDirective
This FreeMarker Directive can be used as the outer-wrapper in a WebScript FreeMarker template to add the the
OutputCSSContentModelElement and OutputJavaScriptContentModelElement instances into the ExtensibilityModel
when the WebScript is not processed within the context of a Page. This ensures that any dependency files are
loaded into the page.
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
AbstractDependencyExtensibilityDirective.ProcessedDependencydependencyAggregator, dependencyHandler| Constructor and Description |
|---|
StandaloneWebScriptWrapper(String directiveName,
org.springframework.extensions.surf.extensibility.ExtensibilityModel model) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData |
createExtensibilityDirectiveData(String id,
String action,
String target,
Map params,
freemarker.template.TemplateDirectiveBody body,
freemarker.core.Environment env) |
getModelObject, getRequestContext, getResourceControllerMapping, getToInsert, getUpdatedSrc, getWebFrameworkConfig, processDependency, setDependencyAggregator, setDependencyHandler, setModelObject, setRequestContext, setWebFrameworkConfigafter, before, execute, getId, getModel, merge, remove, replacepublic StandaloneWebScriptWrapper(String directiveName, org.springframework.extensions.surf.extensibility.ExtensibilityModel model)
public org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData createExtensibilityDirectiveData(String id, String action, String target, Map params, freemarker.template.TemplateDirectiveBody body, freemarker.core.Environment env) throws freemarker.template.TemplateException
createExtensibilityDirectiveData in class org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirectivefreemarker.template.TemplateExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.