sheehan / grails-handlebars-resources

This plug-in supports using Handlebars.js templates with the Grails Resources Plugin.
Other
9 stars 8 forks source link

Question: Production vs. Development #17

Open metajungle opened 10 years ago

metajungle commented 10 years ago

In "development" mode it seems I need to pre-compile my handlebars, but in production mode the handlebars templates are compiled for me. So, in production, the plugin wants mustache templates, while in development mode, it wants precompiled handlebars as JavaScript functions.

What is the suggested approach for making things work nicely both in development and in production? What am I doing wrong?

sheehan commented 10 years ago

It should behave the same. Is there anything different about your resources configuration between dev and prod?