Skip to content

Comment on Fragment.js - A tiny tool for loading html fragments and templatesparent

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.