Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros are not affected by custom visitors #40

Closed
outring opened this issue Apr 5, 2010 · 1 comment
Closed

Macros are not affected by custom visitors #40

outring opened this issue Apr 5, 2010 · 1 comment

Comments

@outring
Copy link

outring commented Apr 5, 2010

I've just created a node visitor and noticed, that it does not works inside macros. Problem is in Twig_Node_Module::getNodes(), there are should be something like this:
public function getNodes()
{
return array_merge(array($this->body), $this->blocks, $this->macros);
}

@fabpot
Copy link
Contributor

fabpot commented May 11, 2010

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants