更新时间:2023-10-25 21:26:52
这篇文章可能会帮助你: / p>
http://emberjs.com/blog/2015/02/05/compiling-templates-in-1-10-0.html
如果您不使用ember-cli,您的HTML应该如下所示:
< script src = 资产/烬-模板compiler.js >< /脚本>
< script src =assets / ember.debug.js>< / script>
如果您使用ember-cli,您的模板应该是预编译的,你不应该有这个问题。
im new to the ember.js framework and using ruby on rails and ember.debug.js -v 1.10.1(latest release). I have been reading online that ember changed this latest patch but i cant figure out how to fix my problem of:
Uncaught Error: Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.
Could someone please nudge me in the direction to getting my compiler to run properly? i wish i knew what code snippets from my project would help determine the answer...
This post may help you:
http://emberjs.com/blog/2015/02/05/compiling-templates-in-1-10-0.html
If you're not using ember-cli - your HTML should look something like this:
<script src="assets/ember-template-compiler.js"></script>
<script src="assets/ember.debug.js"></script>
If you are using ember-cli your templates should be precompiled and you shouldn't be having that problem.