Description
I think I've found a problem with the new #evaluate directive in 1.6. It seems like a call to #evaluate is causing the macros that have already been defined to be cleared. Here is a test template to demonstrate:
#macro (test $t)
test: #evaluate($t)
#end
#macro (test2 $t)
test2: #evaluate($t)
#end
#evaluate("Will Clear Macros")
#test("hi world 1")
#test2("hi world 2")
-------------------------------
My overall major goal is to have a template be able to render other VTL that is pulled from objects. The problem with the RenderTool is that it doesn't share the same macros as the parent. That's why I'm trying to go down the route of using the new #evaluate directive since in theory both the macro and context are shared.