Willow Nice created VELOCITY-940:
------------------------------------
Summary: bodyContent in nested macros called without @ should be
unset
Key: VELOCITY-940
URL: https://issues.apache.org/jira/browse/VELOCITY-940
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 2.3, 1.7.x
Reporter: Willow Nice
Hi! First ever maybe bug report (pls be gentle).
{{#macro(test $label)Something $!label $!bodyContent#\{end}}}
{{#@test('First')}}{{#test('Second')}}{{#end}}
ends up a recurring mess because $bodyContent seems to be still defined when
calling the inner macro without a block. I propose (perleeze) that it should
always be unset when calling a macro without a block. It's fine if you always
call with @ and supply an empty block, or unset it manually before the second
call
p.s.
#@\{test} or #\{@test} doesn't work either
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]