grails install-plugin modernizr
Why use Modernizr?Taking advantage of the new capabilities of HTML5 and CSS3 can mean sacrificing control over the experience in older browsers. Modernizr 2 is your starting point for making the best websites and applications that work exactly right no matter what browser or device your visitors use.Thanks to the new Media Query tests and built-in YepNope.js http://yepnopejs.com/ micro-library as Modernizr.load(), you can now combine feature detection with media queries and conditional resource loading. That gives you the power and flexibility to optimize for every circumstance.To get started -- checkout http://www.modernizr.com/
Installation:grails install-plugin modernizr
Usage:If you want to use it with the resources plugin resources plugin you can use the resources TagLib to include the modernizr module in your gsp.
For developers that don't use the resources plugin the modernizr plugin also provides a TagLib that conviniently adds the modernizr js library to your gsp. It offers the same feature set regarding minified in non-dev-stage vs. un-minified in dev-stage.
<r:require module="modernizr" />
If the resources plugin is installed this results ultimately in the same code.
VersioningPlugin version convention is