velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: More 1.7 BC issues (porting from 1.5)
Date Thu, 03 May 2012 18:33:33 GMT
Anything in the log?  #set($type = \"\") is not valid syntax, i think.
 I'm not even sure what value you want $type to have.  Two double
quotes or an empty string?

On Thu, May 3, 2012 at 11:17 AM, Boris Partensky
<boris.partensky@gmail.com> wrote:
> Hi, I have this use case which involves 2 nested macros and a foreach.
> I am trying to understand why this template evaluates to empty string
> on 1.7, and to "foobaryokdar" - on 1.5.
>
>
> String template = "#set($global_types=['foo', 'bar', 'yok',
> 'dar'])#macro( showBox $input)#set($type = \"\")$input#end"+
>                "#macro(showBoxes $types)#foreach($type in
> $types)#showBox($type)#end#end#showBoxes($global_types)";
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message