2014-11-20 72 views
0

後我編譯灰燼模板成JS源文件,當作爲HTML外部源加載其正常加載。灰燼模板,錯誤HTML內聯時,編譯

然而,當我內聯同一個源文件到HTML(這是需要當前項目),我得到的瀏覽器控制檯上看到以下錯誤:

Uncaught Error: Assertion Failed: An error occured while setting up template bindings. Please check "index" template for invalid markup or bindings within HTML comments. 

模板的代碼,失敗如下:

<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> 

    <div class="inner-nav"> 
     <a class="navbar-brand" rel="home"> 
      <img src="img/logo.png"> 
     </a> 
    </div> 
</nav> 

<main class="login"> 

    <div class="background-image"> 
     <div class="color-overlay"></div> 
    </div> 

    <div class="container"> 
     <aside> 
      <h4>Title</h4> 

      <p>Intro text, lorem ipsum, lahlahlah, etc.</ p> 
     </aside> 

     <article> 
      <div class="panel panel-default"> 
       <div class="panel-heading">Sign in</div> 
       <div class="panel-body"> 
        <form role="form" {{action "login" on="submit"}}> 
         <div class="form-group"> 
          <label for="email">Email address</label> 
          {{input placeholder="Your email" id="email" class="form-control"  value=username}} 
         </div> 
         <div class="form-group"> 
          <label for="password">Password</label> 
          {{input type="password" placeholder="Your password" id="password"  class="form-control" value=password}} 
         </div> 
         <label class='button-label'><a>Forgot password?</a></label> 
         <button type="submit" class="btn btn-primary pull-right">Sign in</button> 
        </form> 
       </div> 
      </div> 

      <div class="panel panel-default"> 
       <div class="panel-body"> 
        <label class='button-label'>New user?</label>  
        <button type="submit" class="btn btn-default pull-right">Sign up</button> 
       </div> 
      </div> 
     </article> 
    </div> 
</main> 

任何想法?

+1

您是否嘗試過一個簡單的模板(例如'

你好,世界

')?你把它放在'