Y
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
kalms
4836 days ago
Yes it does. This one precompiles handlebars for you:
https://github.com/SlexAxton/require-handlebars-plugin
link
modarts
4836 days ago
That's pretty sweet. So if you run the r.js optimizer, you'll be serving minified, precompiled templates to the client.
link
kalms
4835 days ago
Indeed. We use it all the time!
link