GSP Resources

  • Tags : resources, gsp, resource-mapper
  • Latest : 0.4.4
  • Last Updated: 29 September 2013
  • Grails version : 2.0.0 > *
3 votes
Dependency :
runtime ":gsp-resources:0.4.4"

Documentation Source Issues

Summary

Use resources plugin to serve dynamically-built CSS and JS as static files instead of dynamic (non-cacheable) GSPs.

Installation

grails install-plugin gsp-resources

Description

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

  • Sep 29, 2013 - 0.4.4
    • Bugfix: incompatible with resources 1.2.1
    • Bugfix: .css.gsp resources broken on Windows due to JVM bug
  • Sep 18, 2013 - 0.4.3
    • Bugfix: ensure plugin loads after resources plugin
  • Sep 13, 2013 - 0.4.2
    • Allow rendered GSPs in bundles
    • Bugfix: broken dependencies due to grails 2.3
    • Bugfix: compatibility issues with Servlet 2.5 and 3.0
  • Jul 6, 2012 - 0.4.1
    • Bugfix: preserve type from Resources.groovy configuration
  • Jun 26, 2012 - 0.4
    • Support all types of GSP output (e.g. HTML) without special configuration
    • Support grails.resources.debug config setting
    • Generated files now saved in ~/.grails, like other resources plugins
  • 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