title: Python tool to compile/include HTML in Javascript
body: <p>I have a set of HTML files that I'd like to bundle into and access from Javascript.</p>
  
  <p>For my Rails project I use the haml_coffee_assets gem. This gem generates a Javascript JST object that includes my templates. I can refer to a template, in Javascript, using</p>
  
  <pre><code>JST['template_name']()
  </code></pre>
  
  <p>This approach is very convenient because I can have a standalone Javascript file that includes everything.</p>
  
  <p>Are there such tools for Python projects? A stand-alone tool? Something for Flask? Something for Django? I can write a stand-alone tool easily, but it'd be nice if something has already done this. Quick google search didn't return anything.</p>
  
  <p>Thanks.</p>