Yes, you should still have access to global macros. By "seems to be
that i don't", do you mean that you tried it, and it didn't work? Or
just that the docs are unclear?
On Fri, Apr 24, 2009 at 6:31 AM, <
Johann.Weber@...> wrote:
> 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:
nbubna@...]
> 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.Weber@...> 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-unsubscribe@...
> For additional commands, e-mail:
user-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
user-unsubscribe@...
> For additional commands, e-mail:
user-help@...
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
user-unsubscribe@...
For additional commands, e-mail:
user-help@...