velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: set a value in a macro
Date Thu, 25 Aug 2005 17:52:40 GMT
On 8/25/05, Robert Koberg <rob@koberg.com> wrote:
> Nathan Bubna wrote:
> 
> > hmm.  both your way and Jason's?
> 
> No, I did not try to #parse. Just tried to set the variable value in a
> macro.  haven't needed to #parse anything yet - I guess I could look
> into it.
> 
> 
> > also, what were your velocimacro
> > settings in your velocity.properties? (just curious, i'm not sure if
> > they'll make a difference)
> >
> 
> Here is my velocity.properties:
> 
> input.encoding = UTF-8
> output.encoding = UTF-8
> 
> webapp.resource.loader.cache = false
> velocimacro.library.autoreload = true
> 
> velocimacro.library = /WEB-INF/VM_global_library.vm

yeah, if it were going to work, it should have done so with those. 
the only other thing you might try (besides Jason's #parse method, of
course) would be to do a #set( $roles = 'foo' ) before the #roleList()
macro call.  that might make the $roles variable stick.

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


Mime
View raw message