Emberjs Handlebars precompiling

前端 未结 6 2270
庸人自扰
庸人自扰 2020-12-23 14:44

My Emberjs app is running slowly so I wanted to precompile my template to ease the runtime a bit. However I\'m lost on how to proceed. I read http://handlebarsjs.com/precomp

6条回答
  •  借酒劲吻你
    2020-12-23 15:26

    Here is a gist showing how to precompile handlebars templates and add the result to the Ember.TEMPLATES object, which Ember consults to resolve named templates.

    https://gist.github.com/2013669

提交回复
热议问题