title: Reuse template for HTML layout object
body: <p>I would like to add to my form layout an <a href="http://django-crispy-forms.readthedocs.org/en/d-0/layouts.html#universal-layout-objects" rel="nofollow">HTML layout object</a>, reusing an existing template, but I have not been able to get it to work. This is what I am doing:</p>
  
  <pre><code>HTML(loader.get_template('my-template.html'))
  </code></pre>
  
  <p>But <code>get_template</code> is giving me a <code>Template</code>, not a string, and it breaks.</p>
  
  <p>Can I do something else to get this working?</p>
  
  <h2>EDIT</h2>
  
  <p>More rationale:</p>
  
  <p>I am looking for the raw template string, since I want to <strong>reuse</strong> a template for a layout component, which will be rendered later in the context of the page being accessed. When it is rendered, I want it to behave as it would be rendered in a normal template processing step.</p>
  
  <p>I would like to avoid pre-rendering because it seems unsafe to me, since I do not think that it is guaranteed that this gives me back exactly the same template string as I have in disk. And I would really like to avoid having another source of strange and hard to debug problems.</p>
  
  <h2>EDIT2</h2>
  
  <p>This is my current, working hack (even on Heroku):</p>
  
  <pre><code># TODO: this is a hack
  template_str = open(os.path.join(settings.BASE_DIR, 'templates', 'my-template.html')).read()
  
      ...
      HTML(template_str),
      ...
  </code></pre>