-
1. Re: Errai-UI templates fetch all their images
cbrock Mar 19, 2013 7:35 PM (in response to mdhirsch30345)To answer your question, yes the templates are loaded and parsed at runtime. We don't have any sort of automated support for automatically packaging up image references into GWT resource bundles.
It's certainly a compelling feature which we could look at supporting.
The alternative would be to use GWT resource bundles as normal and inject them into the template. But that certainly loses the appeal of designers being able to work with them as you say.
In any case, I could look at prototyping a way to generate bundles by parsing the templates at compile time.
-
2. Re: Errai-UI templates fetch all their images
mdhirsch30345 Mar 20, 2013 11:05 AM (in response to cbrock)Automatic bundling of images would be awesome. That would make the templates much more convenient.
An interim measure would be some way to determine which image files don't need to be downloaded because they are being replaced in the code. Perhaps another attribute in the HTML file?
Thanks for the explanation, Mike.
Michael
-
3. Re: Errai-UI templates fetch all their images
magick93 Mar 20, 2013 2:04 PM (in response to mdhirsch30345)Just wanted to add my voice to this - I also think this would be a great feature.
-
4. Re: Errai-UI templates fetch all their images
jfuerth Mar 22, 2013 10:46 AM (in response to mdhirsch30345)I'd also really like to see the same feature for stylesheets and JavaScript referenced within templates: all of it could be gathered up into resource bundles at compile time with zero additional configuration burden on the app developer.
If I understand correctly, in the case of JavaScript, this should even allow GWT to run the attached scripts through the Closure compiler if that's enabled during production builds.
-Jonathan