Because of several reasons including translation of content i had to build a simple CMS to render the pages of my Symfony2 application.
My problem now is, that is se
Symfony 2.7 makes this easy from PHP, too:
$twig = $this->get('twig'); $template = twig_template_from_string($twig, 'Hello, {{ name }}'); $output = $template->render(['name' => 'Bob']));