title: Adding templating to D3
body: <p><a href="http://bl.ocks.org/JohnBerryman/2295155" rel="nofollow">http://bl.ocks.org/JohnBerryman/2295155</a></p>
  
  <p>This is my attempt to add templating to D3. I drew the original face in Inkscape and then I turned the SVG into an iCanHaz template and made the template variables correspond to facial measurements. This way I could define a face (and by extension, whatever else) and I could easily instantiate the face, or even let the face change by just updating the data bound to the face object. The first part of the code (if you scroll past the demo) is a patch to D3, and then the rest of the code uses that patch.</p>
  
  <p>Unfortunately I didn't ever get to put nice tests around this and submit a pull request to Mr. Bostock.</p>
  
  <p>Questions:</p>
  
  <ol>
  <li>I'm still new to D3. Is this something that can otherwise be done in D3 and I just don't know about it.</li>
  <li>Is this generally useful? Is it worth submitting a pull request?</li>
  <li>Is it d3-esque? Does the code here represent code appropriate for d3?</li>
  </ol>