title: Embed D3 graph into a handlebar template
body: <p>I am trying to embed a d3 graph into a handlebar template but when i am embedding the object registryhelper of handlebar returns [object SVGSVGElement] not as html.</p>
  
  <p><strong>D3 graph with handlebar registry helper</strong></p>
  
  <pre><code> Handlebars.registerHelper('list', function() {
   svg = d3.select('p').append("svg").attr("width",w).attr("height",h);
   var rect1 =svg.append("rect").attr("x",0).attr("y",3*h/4).
   attr("width",w).attr("height",rect_1_h).style("fill",rect_1_color);
   return svg;
   });
  </code></pre>
  
  <p><strong>Handlebar Template</strong></p>
  
  <pre><code>{{#each objects}}
   &lt;tr&gt;
   &lt;td&gt;&lt;p&gt;{{#list}}{{/list}}&lt;/p&gt;&lt;/td&gt;
   &lt;/tr&gt;
   {{/each}}
  </code></pre>