velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee van der Veen <...@metrex.net>
Subject Re: Adding additional macro libraries
Date Tue, 20 Jun 2006 02:11:31 GMT
Thanks for your help!  That definitely gives me something to work with.


On Monday 19 June 2006 2:57 pm, Nathan Bubna wrote:
> yes and no.  i'm pretty sure there is no way to register and process
> an additional file for your velocimacro.library property.
>
> however, if you set up your velocimacro properties right, you can add
> additional velocimacros to your global library by simply merging the
> new library template (with any context) using the velocity engine you
> wish to add them too.
>
> the properties in question are:
> velocimacro.permissions.allow.inline = true
> velocimacro.permissions.allow.inline.to.replace.global = true
> velocimacro.permissions.allow.inline.local.scope = false
>
> If your VelocityEngine has these properties set and then performs a
> merge (i.e. evaluates) the new library, then that will be equivalent
> to having added an additional macro library to your
> velocimacro.library property.
>
> Read more about the properties involved here:
> http://jakarta.apache.org/velocity/docs/developer-guide.html#Velocity%20Con
>figuration%20Keys%20and%20Values
>
> On 6/19/06, Lee van der Veen <lee@metrex.net> wrote:
> > Is there any way to add an additional macro library into the Velocity
> > engine at runtime?
> >
> > --
> >
> > Lee

---------------------------------------------------------------------
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