title: Get values from template in handlebars helper
body: <p>I am using Handlebars for my template. Is there a way to use the values from a template where the helper is in use ?</p>
  
  <p>It is important that the given value is a string and later be the value.</p>
  
  <p>Example:</p>
  
  <pre><code>// Template.html
  &lt;p&gt;{{myHelper 'This is an awsome {name}'}}&lt;/p&gt;
  
  Helper.js
  Handlebars.registerHelper('myHelper', function(string){
  
   // string is 'This is an awsome {name}' AND it is important that {name} is a string and at this point not the real value
  
   var myNewString = string.replace(\{name}\, Handlebars.getValueByKey(name));
   return myNewString
  
  });
  </code></pre>
  
  <p>If <strong>name</strong> is "Test" the returned value will be <strong>This is an awsome Test</strong></p>
  
  <p>The value for name is given in another Helper for this template, where is defined that "name" is "Test" as a string.</p>
  
  <p>I am looking for a function something like i used in my example - <strong>getValueByKey</strong></p>
  
  <p>Is there a typical way to do this ? I did not find anything like this in the offical documentation.</p>
  
  <p><strong>Edit:</strong> I am sorry - i dont know why the example in the code-box looks like this. </p>