title: Using handlebars template - jquery data not properly rendering
body: <p>I am getting json data, using i am manipulation using jquery method to append my template. i am getting data properly but i am not get the the element append.. what is wrong here..</p>
  
  <p>my html :</p>
  
  <pre><code>&lt;script id="header-template" type="text/x-handlebars-template"&gt;
          &lt;div class="loginInfo"&gt; &lt;a href="#"&gt;{{name}}&lt;/a&gt; | &lt;a href="#"&gt;Logout&lt;/a&gt; &lt;/div&gt;
      &lt;/script&gt;
  </code></pre>
  
  <p>myfunction:</p>
  
  <pre><code>var manupulate = function(data){
  
          var template = Handlebars.compile($("#header-template").html());
  
          $.each(data, function(key,data){
              if(key==="name"){
                  $("header").append(template(data));//it is rendering but i didn't see the name value.. console.log(data) - works fine.
              }
          })
      }
  </code></pre>
  
  <p>what is wrong here.. any one help me?</p>