Comment on Fragment.js - A tiny tool for loading html fragments and templatesparentComments−modarts13yDoesn't require.js include plugins that will pull in compiled templates for you for the major templating libraries already? (underscore, mustache etc)?−kalms13yYes it does. This one precompiles handlebars for you: https://github.com/SlexAxton/require-handlebars-plugin−modarts13yThat's pretty sweet. So if you run the r.js optimizer, you'll be serving minified, precompiled templates to the client.−kalms13yIndeed. We use it all the time!
Comments
Doesn't require.js include plugins that will pull in compiled templates for you for the major templating libraries already? (underscore, mustache etc)?
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!