Ray Kootstra Ray Kootstra - 1 year ago
853 0

Example how to include a sub twig template and passing objects to the sub template.

Twig

Twig include twig sub template with variables

{% include '@Example/Templates/sub-layout.html.twig' with { ObjectNameInSubTemplate : ObjectNameInHeadTemplate } %}