News for hackers. Stuff that matters.
Re:Converting an existing Backbone.js project to Require.js by tristan_juricek on Sunday August 25, 2013 @02:37PM (#6273110)
The RequireJS plugin system is really useful.

Alex Sexton's handlebars plugin is a great example of what sets this apart: https://github.com/SlexAxton/require-handlebars-plugin

- The javaScript code only sees the compiled template function

- Handlebars partials and helpers are automatically discovered and registered as needed

- The optimizer can be used to precompile all template code, makes for fast page loads

I've been using this with an i18n solution that folds in the MessageFormat.js project as well, which makes for a nice pluralization system even if you don't need true localization.

There are no comments on this comment yet.