use twig string to template function to render templates.