Ember.js是否支持加载外部文件视图模板? [英] Does Ember.js support loading external file view templates?

查看:82
本文介绍了Ember.js是否支持加载外部文件视图模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Ember / Sproutcore ...
从SproutCore文档中可以找到,SC.TemplateView支持从外部文件加载句柄模板。这个功能是否存在于Ember?

I'm new to Ember/Sproutcore... From what i could find in SproutCore documentation, SC.TemplateView supports loading handlebar template from external files. Does this functionality exist in Ember?

推荐答案

正如其他答案所述,您的构建工具是实现此目标的关键。以下StackOverflow问题显示了如何使用Rake :: Pipeline 设置与Google App Engine一起使用的耙式管道

As other answers have mentioned, your build tool is the key to achieving this. The following StackOverflow question shows how to do this using Rake::Pipeline Setting up rake-pipeline for use with handlebars alongside Google App Engine

关于BPM与Rake ::管道:目前Ember.js的核心团队在其生产项目中使用了Rake :: Pipeline。 BPM的作者表示有兴趣回头看,但据我所知,没有人正在积极发展。也就是说,这是一个很好的工具,我们目前正在一个项目中使用它。

Regarding BPM vs. Rake::Pipeline: At the moment, the Ember.js core team is using Rake::Pipeline in their production projects. The authors of BPM have expressed interest in getting back to it, but no one is actively developing it as far as I know. That said, it's a great tool, and we're currently using it on a project.

这篇关于Ember.js是否支持加载外部文件视图模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆