Jasig / umobile-app-phonegap

7 stars 11 forks source link

Discussion: Implement precompiled handlebars templates. #22

Closed mpolizzotti closed 11 years ago

mpolizzotti commented 11 years ago

It is possible to precompile templates. This will result in a smaller required runtime library and significant savings from not having to compile the template in the browser. This can be especially important when working with mobile devices. It is also possible to automate the precompiling of templates with node.js and grunt. Precompiling templates can be another grunt task added to our build.

http://handlebarsjs.com/

This would be a good question for the community. Should we take this approach?

mpolizzotti commented 11 years ago

This issue has been handled with recent commits to master. Where possible, templates are being precompiled and injected into the index.html file with the grunt tool during the build process.