Sign in to edit and +1 items.
Login required
Download

GSP Resources

(2)
Author(s) Stefan Kendall, Francis McKenzie
Current Release 0.31.1   (1 month ago)
Grails Version 2.0.0 > *
Tags gsp  resources 
Dependency
runtime ":gsp-resources:0.31.1"
Custom repositories
mavenRepo "http://grails.org/plugins"
Use resources plugin to serve dynamically-built CSS and JS as static files instead of dynamic (non-cacheable) GSPs.
Last updated by stefankendall 7 months ago
grails install-plugin gsp-resources
Last updated by mckenfra 2 months ago
This plugin integrates GSP template compilation with the resources plugin. GSP files can be used to generated JS, CSS, or any other statically-served file which are then included properly via the resources plugin. Instead of in-lining generated styles or javascript in GSP partials, actual CSS and JS files can be referenced.

Full documentation

License

Licensed under the Apache License, Version 2.0. See http://www.apache.org/licenses/LICENSE-2.0

History

  • Mar 24, 2012 - 0.31
    • Made compatible with Servlet 2.5 (already 3.0)
  • Mar 21, 2012 - 0.3
    • Fix bug causing createLink to break after using gsp-resources
    • Fix bug causing resource(dir:"/") to render incorrect context path
    • Automatically detect compiled file type from filename
    • Support <r:require/>, <g:include/> etc. in GSPs
    • Support GSP resource files located in plugins
    • Allow delaying resources processing until bootstrap phase
    • Process resources in order of dependsOn config
  • Oct 25, 2011 - 0.2.1
    • Set included resources version to 1.1.1, dependsOn to '1.0.2 > *'
  • Oct 22, 2011 - 0.2
    • Fixed g:createLink.
    • Made plugin compatible with 2.0RC1.
  • Oct 15, 2011 - 0.1
    • Initial implementation
Last updated by stefankendall 7 months ago
Last updated by stefankendall 7 months ago