title: Handlebars templates in HAML using Ember.js
body: <p>I'm looking for a way to write my Handlebars templates using HAML, in a Ember.js application embedded in a Rails 3.2 project.</p>
  
  <p>Handlebars is 1.0.rc.1, require'd from ember-rails gem 0.7.0<br />
  Ember is 1.0.pre-90-g60e3c05</p>
  
  <p>Anyway, my template now looks like that :</p>
  
  <pre><code>&lt;div id="container"&gt;
    This is my test
  &lt;/div&gt;
  </code></pre>
  
  <p>I'd like it to be like this :</p>
  
  <pre><code>#container
    This is my test
  </code></pre>
  
  <p>BTW, I'v seen James Harton's <a href="https://github.com/jamesotron/hamlbars" rel="noreferrer">Hamlbars</a> but I could not figure out how to make it work. It kept outputing <code>Ember.TEMPLATES["templates/choose_resort"] = Ember.Handlebars.compile("This is my test");</code> instead of the intended :</p>
  
  <pre><code>&lt;div id="container"&gt;
    This is my test
  &lt;/div&gt;
  </code></pre>
  
  <p>(even the div block is missing in the what-seems-to-be-uncompiled-code returned)</p>
  
  <p>Any hint would be greatly appreciated.
  Thanks in advance.</p>