Replace templates with Twig files