title: Twig render a template inside template
body: <p>I would like to know how to render a "template inside another template".
  I have this kind of template :</p>
  
  <pre><code>[...]
  {% autoescape false %}
      {{ page.content }}
  {% endautoescape %}
  [...]
  </code></pre>
  
  <p>"page.content" can be valued with some twig! 
  For example it can contain some calls like</p>
  
  <pre><code>{{ myObject.poperty }}
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>{% render "MyBundle:Bundle:myAction" with {'title': myObject.title} %}
  </code></pre>
  
  <p>By default, the content of page.content is not parsed by Twig.
  So I have made an extension and I am able to parse calls like
  {{ page.content }}</p>
  
  <p>My extension looks like : </p>
  
  <pre><code>$loader     = new \Twig_Loader_String();
  $this-&gt;environment-&gt;setLoader($loader);
  
  $template   = $this-&gt;environment-&gt;loadTemplate($string);
  $output     = $template-&gt;display(array('myObject' =&gt; $object));
  </code></pre>
  
  <p>But I am still not able to rendre the second kind of call {% render.... %}</p>
  
  <p>I have tried to do :</p>
  
  <pre><code>$stream     = $this-&gt;environment-&gt;tokenize($string);
  $nodes      = $this-&gt;environment-&gt;parse($stream)-&gt;getNode('body')-&gt;getNode(0);
  $output     = $this-&gt;environment-&gt;compile($nodes);
  </code></pre>
  
  <p>But I am stuck...</p>
  
  <p>Do you know how I could render my "page.content" value?</p>