-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Description
The commit b5ed124 prevents using the Tag embed.
The Solution is to add another Node Visitor EmbedNodeVisitor which creates an PatternDataEmbedNode exending Twig_Node_Embed.
In Addition prevent in the IncludeNodeVisitor creating a PatternDataIncludeNode class in case the $node is an object of Twig_Node_Embed.
Something like
if ($node instanceof \Twig_Node_Include && !($node instanceof \Twig_Node_Embed)) {