cadena de renderizado
$twig = new \Twig_Environment(new \Twig_Loader_String());
$rendered = $twig->render(
"Test string template: {{ result }}",
array("result" => "Success!")
);
Mohammadali Mirhamed