velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Adding additional macro libraries
Date Mon, 19 Jun 2006 19:57:33 GMT
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%20Configuration%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
>
>

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