0
我想開始了學習Ember.js,我收到此錯誤權當頁面加載:灰燼RC 6不承認把手RC 4
Assertion failed: Ember Handlebars requires Handlebars version 1.0.0-rc.4.
Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file before
you link to Ember.
然而,我去了Ember.js 'About' page並下載了入門工具包。它帶着以下文件:
- 餘燼-1.0/0-rc.6.js
- 車把-1.0.0-rc.4.js
- 的jquery-1.9.1.js
我在ASP MVC 3項目中這樣做,所以這裏有一些Razor語法,但這是我的_Layout.cshtml
文件。我目前在主頁Index
頁面沒有任何內容,所以這實際上是所有將被加載到頁面上的HTML。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.9.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ember-1.0.0-rc.6.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/handlebars-1.0.0-rc.4.js")" type="text/javascript"></script>
</head>
<body>
<div class="page">
<header>
<div id="title">
<h1>Bootstrap/Ember.js Sample Application</h1>
</div>
</header>
<section id="main">
@RenderBody()
</section>
<footer>
</footer>
</div>
</body>
</html>