Resources
81% of Grails users
Dependency :
runtime ":resources:1.2.RC2"
Summary
HTML resource management enhancements to replace g.resource etc.
Description
To use the plugin, add this to your BuildConfig.groovy:Be sure to use the most recent release; due to a bug, this page may not show the most current release but it is currently 1.2.This plugin represents a new way of declaring and linking to static resources in your application and plugins. Resource dependencies can be declared (e.g. jQuery UI requires jQuery) and pages simply indicate which resource modules they require. The plugin does the rest, and provides a processing pipeline for advanced optimisations. There is a screencast by Bobby Warner which demonstrate the usage of Spring Security Core plugin and Resources plugins as well as some unit testing.Full documentationSee also the resource mapping plugins:
plugins {
runtime ':resources:1.2'
}- zipped-resources
- cached-resources
- lesscss-resources
- gsp-resources
- yui-minify-resources
- handlebars-resources
- page-resources