Simple precompiler tasks for ember-i18n by jamesarosen
The ember-i18n project is a great resource to internationalize your Ember application. Unfortunatley, it requires the full handlebars.js package, instead of just the handlebars.runtime.js file. The aim of this project is to provide utility functions you can easily integrate into the JS build system of choice.
The source of this library originally came from the grunt-ember-i18n-precompile project. In fact, I was originally using this plugin out-of-the-box. Then, I switched over to brunch and needed a plugin for the new build system. So, this utility library will be used as part of ember-i18n-precompile-brunch.
In most cases, you'll be using this to create a build system plugin. For an example, check out ember-i18n-precompile-brunch.
If you want to utilize this for a new plugin, start by installing it in your plugin repository using
npm install --save-dev ember-i18n-precompile.
Then, use the
createTemplate(src) method to generate the template.
Please note that you'll need to pass the full source to
createTemplate(), so make sure that you've done any concatenating before passing calling it.
This project is built using Grunt.
grunt to build the library file into the
grunt test to run the projects tests.