org.grails.plugin.resource
[Groovy] Class CSSRewriterResourceMapper
java.lang.Object
org.grails.plugin.resource.CSSRewriterResourceMapper
class CSSRewriterResourceMapper
This mapper is the second phase of CSS rewriting.
It finds any "resource:" URIs and then re-relativizes the absolute URI that follows it, using the final
locations of all the resources now that all the other CSS-processing mappers have been applied.
- Authors:
- Marc Palmer (marc@grailsrocks.com)
- Luke Daley (ld@ldaley.com)
- See Also:
- CSSPreprocessor
Method Summary |
java.lang.Object
|
map(java.lang.Object resource, java.lang.Object config)
Find all url() and fix up the url if it is not absolute
NOTE: This needs to run after any plugins that move resources around, but before any that obliterate
the content i.e. before minify or gzip
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
defaultIncludes
static java.lang.Object defaultIncludes
-
grailsResourceProcessor
java.lang.Object grailsResourceProcessor
-
phase
java.lang.Object phase
-
CSSRewriterResourceMapper
CSSRewriterResourceMapper()
-
map
java.lang.Object map(java.lang.Object resource, java.lang.Object config)
- Find all url() and fix up the url if it is not absolute
NOTE: This needs to run after any plugins that move resources around, but before any that obliterate
the content i.e. before minify or gzip
Groovy Documentation