title: Jinja2: Render template inheritance?
body: <p>I'd like to render a fused Jinja2 and Markdown page using a template, which looks like so:</p>
  
  <pre><code>{% block title %}{{ title }}{% endblock %}
  
  # {{ title[0] }}
  # {{ title[1] }}
  
  ## Introduction
  </code></pre>
  
  <p>I can get that above code to generate HTML fine, but as I am using this script for a custom authoring application, I'd like to be able to define master templates for each type of entry.</p>
  
  <p>When I try to render the above page by extending a master template, <code>template.html</code>:</p>
  
  <pre><code>{% extends 'template.html' %}
  
  {% block title %}{{ title }}{% endblock %}
  
  # {{ title[0] }}
  # {{ title[1] }}
  
  ## Introduction
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "compiler.py", line 55, in &lt;module&gt;
      template = Template(text).render(parser.vars)
    File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 891, in render
      return self.environment.handle_exception(exc_info, True)
    File "&lt;template&gt;", line 1, in top-level template code
  TypeError: no loader for this environment specified
  </code></pre>
  
  <p>You can see that the problematic line is <code>template = Template(text).render(parser.vars)</code>.</p>
  
  <p>Is there any way that I can render the above template code and be able to extend <code>template.html</code>?</p>