Groovy Documentation

org.grails.plugin.resource
[Groovy] Class CSSLinkProcessor

java.lang.Object
  org.grails.plugin.resource.CSSLinkProcessor

class CSSLinkProcessor

This class is used to parse out and replace CSS links

Authors:
Marc Palmer (marc@grailsrocks.com)
Luke Daley (ld@ldaley.com)


Property Summary
static java.lang.Object CSS_URL_PATTERN

java.lang.Object log

 
Constructor Summary
CSSLinkProcessor()

 
Method Summary
boolean isCSSRewriteCandidate(java.lang.Object resource, java.lang.Object grailsResourceProcessor)

void process(ResourceMeta resource, java.lang.Object grailsResourceProcessor, groovy.lang.Closure urlMapper)

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()
 

Property Detail

CSS_URL_PATTERN

static java.lang.Object CSS_URL_PATTERN


log

java.lang.Object log


 
Constructor Detail

CSSLinkProcessor

CSSLinkProcessor()


 
Method Detail

isCSSRewriteCandidate

boolean isCSSRewriteCandidate(java.lang.Object resource, java.lang.Object grailsResourceProcessor)


process

void process(ResourceMeta resource, java.lang.Object grailsResourceProcessor, groovy.lang.Closure urlMapper)
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