Added twig as the templating engine and added the functionality to compile layouts.