Hacker News new | ask | show | jobs
by modarts 4836 days ago
Doesn't require.js include plugins that will pull in compiled templates for you for the major templating libraries already? (underscore, mustache etc)?
1 comments

Yes it does. This one precompiles handlebars for you: https://github.com/SlexAxton/require-handlebars-plugin
That's pretty sweet. So if you run the r.js optimizer, you'll be serving minified, precompiled templates to the client.
Indeed. We use it all the time!