Added a twig helper method for rendering templates