2 "template_from_string" function
4 {% include template_from_string(template) %}
6 {% include template_from_string("Hello {{ name }}") %}
7 {% include template_from_string('{% extends "parent.twig" %}{% block content %}Hello {{ name }}{% endblock %}') %}
8 --TEMPLATE(parent.twig)--
9 {% block content %}{% endblock %}
11 return array('name' => 'Fabien', 'template' => "Hello {{ name }}")