Closed sheehan closed 12 years ago
Nicholas Wittstruck n.wittstruck@gmail.com via grails.codehaus.org
7:15 AM (3 hours ago)
to dev Try defining the resource like this:
resource url:[plugin: 'twitter-bootstrap', dir: 'css', file: 'bootstrap-fixtaglib.css'], disposition: 'head'
The important part is the plugin attribute. I don't know if it's a bug in the resources plugin or not, but it's not copying the js/css files from plugins unless the plugin name is specified. It seems that this is not necessary when the debug flag is set to false (might be wrong on this one, haven't tested it).
Works correctly after adding Nicholas' fix.
David Tinker david.tinker@gmail.com via grails.codehaus.org
6:52 AM (4 hours ago)
to dev My app runs fine unless I set grails.resources.debug = true. Then I get a 404 for this request:
http://localhost:8022/js/handlebars.runtime-1.0.0.beta.6.js?_debugResources=y&n=1346931957085
All the other js libs load fine including jQuery which also comes from a plugin. Turning off grails.resources.debug so the js files are bundled together works.
Any ideas?
handlebars-resources-0.3 resources-1.2-RC1 jquery-1.7.2
Grails 2.1.0