before twig