public abstract class LessCssThemeHandler extends CssThemeHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
LESS_TOKEN |
| Constructor and Description |
|---|
LessCssThemeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultLessConfig()
Returns the current default LESS configuration.
|
String |
getLessVariables()
Looks for the LESS CSS token which should contain the LESS style variables that
can be applied to each CSS file.
|
String |
logLessException(Exception e,
String path)
This function is used to log exceptions that occur during LESS compilation.
|
determineThemeTokens, getDependencyHandler, getTargetGroup, getTokenMap, getTokenRegex, getWebFrameworkConfigElement, processCssThemes, processCssThemeTokens, setDependencyHandler, setTargetGroup, setTokenRegex, setWebFrameworkConfigElementpublic static final String LESS_TOKEN
protected String getDefaultLessConfig()
public String getLessVariables()
public String logLessException(Exception e, String path)
LessException that is thrown from the LessEngine does not capture all exception
eventualities. When a JavaScript error occurs in Rhino this can result in a ClassCastException
which needs to be caught separately. Currently Surf still supports Java 6 so cannot process
multiple exceptions so the error handling has been abstracted to a helper method.e - The exception that has been thrown.path - The path being processed that caused the exceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.