title: Twig / Symfony 2.3.4: Extending twig template stored in database
body: <p>I am currently building a CMS in Symfony 2.3.4, and as part of this CMS I would like to store all of the twig templates in a database. I've read up on how to store and access them in the database, and it seems simple enough - however, one question remains. It must be possible to extend templates stored in the database, but I have no idea how to do this.</p>
  
  <p>If anybody has any experience or knowledge I would be very grateful.</p>
  
  <p>Cheers!</p>