public class ExternalLessCssThemeHandler extends LessCssThemeHandler
Typically uses a Node "lessc" module preinstalled via NPM or similar. This is not expected to be used in production environments where adding additional 3rd party modules to the web-tier is not desired or permitted.
LESS_TOKEN| Constructor and Description |
|---|
ExternalLessCssThemeHandler()
Sets up a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
processCssThemes(String path,
StringBuilder cssContents)
Overrides the default implementation to add LESS processing capabilities.
|
void |
setCmd(String cmd) |
getDefaultLessConfig, getLessVariables, logLessExceptiondetermineThemeTokens, getDependencyHandler, getTargetGroup, getTokenMap, getTokenRegex, getWebFrameworkConfigElement, processCssThemeTokens, setDependencyHandler, setTargetGroup, setTokenRegex, setWebFrameworkConfigElementpublic ExternalLessCssThemeHandler()
public void setCmd(String cmd)
cmd - The external cmd to execute. For example Node lessc this would be "lessc -".
The command must be able to accept LESS CSS as stdin and return output from stdout.public String processCssThemes(String path, StringBuilder cssContents) throws IOException
processCssThemes in class CssThemeHandlerpath - The path of the file being processed (used only for error output)cssContents - The CSS to processIOException - when accessing file contents.Copyright © 2005–2016 Alfresco Software. All rights reserved.