velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <>
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 = 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:

On 6/19/06, Lee van der Veen <> wrote:
> Is there any way to add an additional macro library into the Velocity
> engine at runtime?
> --
> Lee
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message