Implement Twig engine with a compiler