1--TEST-- 2"template_from_string" function 3--TEMPLATE-- 4{% include template_from_string(template) %} 5 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 %} 10--DATA-- 11return ['name' => 'Fabien', 'template' => "Hello {{ name }}"] 12--EXPECT-- 13Hello Fabien 14Hello Fabien 15Hello Fabien 16