fabpot/Twig — Issue #532: Consider adding a getter for loop property
Author: schmittjoh
Created: 2011-11-24 21:12:37+00:00
State: open

The loop property is currently not accessible from outside the node class which causes problems in twig.js. Due to the fact that compilers for Twig are embedded inside the nodes themselves this works fine there (although a cleaner architecture IMO would be to separate the compilation logic from the AST in the long term).

I could also work around this using reflection, but adding a getter seems like the simplest solution.