【发布时间】:2014-05-10 19:03:54
【问题描述】:
我有多个 Ember 应用程序,它们位于 Middleman 应用程序中。当前目录结构是
[app-name]
components
helpers
source
assets
img
css
js
// jQuery for other pages
app.js
// An ember app
fullscreen
components
controllers
models
routes
views
app.js
// Another ember app
sandbox
components
controllers
models
routes
views
app.js
demos
// These currently contain the templates, in script tags
fullscreen.erb
sandbox.erb
我试图弄清楚如何将模板移出脚本标签。在这一点上,我花了很多时间试图让各种解决方案发挥作用:
- https://github.com/mrship/middleman-ember
- https://gist.github.com/GutenYe/4364010
- http://nerdyworm.com/blog/2013/05/06/ember-dot-js-and-middleman/
这最后一个我曾经在某个时候工作过,但现在无法让它再次工作。
完成此任务的最简单方法是什么?我是 Sprockets and Rack 的新手,这让我更难整理。
【问题讨论】:
标签: ember.js rack sprockets middleman