Twig function rendering scripts