2 "include" function accept variables and with_context
4 {{ include("foo.twig") }}
5 {{- include("foo.twig", with_context = false) }}
6 {{- include("foo.twig", {'foo1': 'bar'}) }}
7 {{- include("foo.twig", {'foo1': 'bar'}, with_context = false) }}
9 {% for k, v in _context %}{{ k }},{% endfor %}
11 return array('foo' => 'bar')
15 foo,global,foo1,_parent,