title: Access Object property from template in handlebars
body: <p>According the documentation and to this link <a href="https://stackoverflow.com/questions/10234725/how-do-i-access-an-objects-properties-from-a-template">Stackoverflow link</a>, i should be able to access the property of my object, but it doesent work. Here is my code-snipped.</p>
  
  <p>Handlebars helper</p>
  
  <pre><code>var person ={
      name : "test"
  };
  
  Handlebars.registerHelper('getperson', function() {
      console.log(person.name);
      return person;
  </code></pre>
  
  <p>Template</p>
  
  <pre><code>&lt;h1&gt;{{ getperson }} &lt;/h1&gt;
  </code></pre>
  
  <p>In this constellation i get rendered: <strong>[object Object]</strong></p>
  
  <p>but i want to display the persons name "test"</p>
  
  <pre><code>{{#with getperson}}
      &lt;h1&lt; {{name}} &lt;/h1&gt;
  {{/with}}
  </code></pre>
  
  <p>This snipped didnt work for me. :-(</p>