added a helper function to quickly render a twig string