The Sass Filter
The Sass conversion is carried out by a filter specified in
web.xml
:
<filter> <filter-name>SassCompiler</filter-name> <filter-class>com.escenic.sass.SassCompilingFilter</filter-class> <!-- <init-param> <param-name>sassLocation</param-name> <param-value>some/other/location</param-value> </init-param> <init-param> <param-name>cssLocation</param-name> <param-value>some/other/location</param-value> </init-param> <init-param> <param-name>cacheLocation</param-name> <param-value>some/other/location</param-value> </init-param> <init-param> <param-name>cache</param-name> <param-value>true/false</param-value> </init-param> --> </filter> <filter-mapping> <filter-name>SassCompiler</filter-name> <url-pattern>/static/theme/default/base/SassToCss/*</url-pattern> <!--WARNING: This pattern is provide for default base skin. If you change the skin, you have to change here too.--> </filter-mapping>
You can customize the filter by uncommenting and setting the
values of the init-param
elements:
sassLocation
-
The location of the
.scss
files to be converted. The default is/theme/
theme-name/base/sass/
. cssLocation
-
The location to which the converted
.css
files are to be written. The default is/theme/
theme-name/base/SassToCss/
. cacheLocation
-
The location of a cache folder (if required). The default is
/WEB-INF/.sass-cache/
. cache
-
Set to
true
if you want converted.css
files to be cached. The default isfalse
.