Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created October 26, 2015 17:46
Show Gist options
  • Save rangalo/a979872aae0e93adf7c9 to your computer and use it in GitHub Desktop.
Save rangalo/a979872aae0e93adf7c9 to your computer and use it in GitHub Desktop.
This mixin will be on jsf side
//-----------------------------------------------------------------------------
// resource_url function returns the parameter as url(#{resource['<parameter>']})
// and should be used instead of CSS url() or compass image_url() in JSF applications.
// Define JSF Resource Library resource['standard:
@function resource_url($url) {
@return ("\#{resource['#{$url}']}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment