I'm looking for an easy, reliable way to lazy load templates in Ember 1.10 but can't find much. This SO question and this discuss.emberjs both ask something similar to what I need for this application.
I've set up Grunt with grunt-ember-templates to pre-compile the templates. But, by the end of this development, the minified JS file will be in the 3-4 megabyte range, which is not an option.
The questions mentioned above were asked over a year ago. Has anything changed that Handlebars, or better yet HTMLBars templates can be loaded as they're needed? I feel like I'm missing something entirely! Ember was built exactly for the purpose of creating robust applications.
Aucun commentaire:
Enregistrer un commentaire