[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: [jira] [Resolved] (VELOCITY-940) bodyContent in nested macros called without @ should be unset
From: "Claude Brisson (Jira)" <jira () apache ! org>
Date: 2023-03-26 13:27:00
Message-ID: JIRA.13366260.1616136067000.190084.1679837220012 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/VELOCITY-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Claude Brisson resolved VELOCITY-940.
-------------------------------------
Fix Version/s: 2.4
Assignee: Claude Brisson
Resolution: Fixed
> 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: 1.7.x, 2.3
> Reporter: Willow Nice
> Assignee: Claude Brisson
> Priority: Minor
> Fix For: 2.4
>
>
> 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.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic