If I set this property to true, do I have access to the global macros which were defined in VM_global_library.vm? It seems to be that I don't. Is there a way to access the global macros?
-----Ursprüngliche Nachricht----- Von: Nathan Bubna [mailto:nbu...@gmail.com] Gesendet: Donnerstag, 23. April 2009 20:19 An: Velocity Users List Betreff: Re: Problem with VM and caching Keep your inline macros local: velocimacro.permissions.allow.inline.local.scope = true and in general, i'd recommend rereading the Velocimacro section of this: http://velocity.apache.org/engine/devel/developer-guide.html#Velocity_Configuration_Keys_and_Values On Thu, Apr 23, 2009 at 9:26 AM, <johann.we...@eventim.de> wrote: > Hi all, > > > > I'm using 2 vm files : > > > > The first one, located in > > /example1/local.vm with > > > > #macro(Hello) > > Hello from example 1 > > #end > > > > And the second one in > > /example2/local.vm with > > > > #macro(Hello) > > Hello from example 2 > > #end > > > > One index.htm in both directories with #Hello > > > > Now, if I try to parse the /example1/index.htm via > > template.merge(context, velocityWriter, </example1/local.vm >) the > output is "Hello from example 1". The second call for > /example2/index.htm template.merge(context, velocityWriter, > </example2/local.vm >) returns "Hello from example 2". But if I'm > parsing the /example1/index.htm template.merge(context, velocityWriter, > </example1/local.vm >) again, I'm getting "Hello from example 2". It > works correct if I turn off the loader cache. > > Any suggestions? > > > > Regards, Johann > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org