public class SassHandler extends AssetHandler
| Constructor and Description |
|---|
SassHandler()
Creates a new
SassHandler handler with a location pattern of: /. |
SassHandler(String pattern)
Creates a new Sass handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected URL |
resolve(String path) |
protected void |
send(Request req,
Response rsp,
Asset asset) |
cdn, etag, handlepublic SassHandler(String pattern)
Creates a new Sass handler. The location pattern can be one of.
Given/ like in assets("/assets/**", "/") with:
GET /assets/js/index.js it translates the path to: /assets/js/index.jsGiven
/assets like in assets("/js/**", "/assets") with:
GET /js/index.js it translate the path to: /assets/js/index.jsGiven
/META-INF/resources/webjars/{0} like in
assets("/webjars/**", "/META-INF/resources/webjars/{0}") with:
GET /webjars/jquery/2.1.3/jquery.js it translate the path to: /META-INF/resources/webjars/jquery/2.1.3/jquery.js
pattern - Location pattern.public SassHandler()
SassHandler handler with a location pattern of: /.Copyright © 2015. All rights reserved.