title: PHP Twig rendering huge XML data
body: <p>I'm looking for a way to leverage the power of twig templates for generating an XML file, but the contents of this file are huge.  I want to avoid having the contents of this XML file in-memory, so at the moment, it's being written to disk as it's generated.</p>
  
  <p>To render the twig template with its contents, it requires the full data structure in memory to be passed in.</p>
  
  <p>Is there any way to begin rendering data against a twig template with partial data, to avoid having to load all the contents to memory first?</p>