require-handlebars-plugin
require-handlebars-plugin copied to clipboard
Calling several templates causes loading i18n file once per template
Having the next code:
define(['hbs!template/one', 'hbs!template/two'], function (tmplOne, tmplTwo) {
The browser calls twice to en_us.json file. My application has some modules loading different templates when the App starts, and I'm getting many calls to i18n file.
Is there any way to avoid that and reuse the content file for all templates?
+1