velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Harvey III <>
Subject #set() in #macro()
Date Tue, 23 Dec 2008 16:11:26 GMT
I could have sworn that I used to be able to set a variable in a macro and
then render that variable after the macro was called.  But I seem to be 
about this.  Here is an example:

#macro( setVariable )
    #set( $variable = "Velocity" )


Doesn't render.  It just prints "$variable" to the page.  Is this 
supposed to
work?  Or am I doing something that shouldn't be done?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message