Open abastyr opened 4 years ago
Hmm, I suspect the fix for this could be fiddly. I agree that compatibility would be good here, but I guess it would be fairly trivial to move the macro declaration earlier in the source code in this case.
Sort of. The problem is that the actual macro is massive and we put it in the back so it doesn't cover what the template really does. But I think I can write a piece of code that will put all the macros in front of the execution.
Airspeed throws an exception if the macro is referenced in the template before it is defined. This works normally in Apache Velocity.
Code example:
This throws a following exception: