1--TEST-- 2"include" function accept variables 3--TEMPLATE-- 4{{ include("foo.twig", {'foo': 'bar'}) }} 5{{- include("foo.twig", vars) }} 6--TEMPLATE(foo.twig)-- 7{{ foo }} 8--DATA-- 9return ['vars' => ['foo' => 'bar']] 10--EXPECT-- 11bar 12bar 13