The problem is a bit with the call-back mechanism. If I set the property velocimacro.permissions.allow.inline.local.scope on true the behaviour changes, it never loads it at all...
In short macros:
pageA.html -------------- #macro (x) This is macro X on page A #end <html> <body>
Page A: #invokeX()
<a href="pageB.html">Page B</a> </body> </html> -------- end
pageB.html ------------------ #macro (x) This is macro X on page B #end <html> <body>
Page B: #invokeX()
<a href="pageA.html">Page A</a> </body> </html> -------- end
global.html ---------------- (loaded through the property velocimacro.liberary)
#macro(invokeX)
#parse("invokeX.html")
#end
-------- end
invokeX.html -------------- #x() -------- end
Now you can never get this to work properly, to my opinion.
Thanks, Vincent
Shinobu Kawai wrote:
Hi Vincent,
[...] Not here. Try the user list. ;) http://jakarta.apache.org/site/mail2.html#Velocity http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED] ## You can subscribe by sending an empty mail to [EMAIL PROTECTED]
Having said that, take a peek here: http://jakarta.apache.org/velocity/developer-guide.html#Velocity%20Configuration%20Keys%20and%20Values
Best regards, -- Shinobu
-- Shinobu Kawai <[EMAIL PROTECTED]>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- XIAM Solutions B.V. Barchman Wuytierslaan 72A 3818 LK AMERSFOORT tel. : +31(0)33 462 40 07 e-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
WAARSCHUWING: Dit bericht is UITSLUITEND bestemd voor de (rechts)perso(o)n(en) aan welke het bericht is gericht. Het kan vertrouwelijke of alleen voor deze rechts)perso(o)n(en) bestemde informatie bevatten, die niet mag worden geopenbaard. Als dit bericht niet voor u bestemd is, mag u de ontvangen informatie niet lezen, gebruiken, verspreiden of kopi�ren. Als u dit bericht per abuis heeft ontvangen, gelieve het bericht dan te vernietigen en contact op te nemen met de afzender.
WARNING: This message is intended ONLY for the person(s) or entity to which it is addressed and may contain confidential and/or privileged information, the disclosure of which is prohibited. If you are not the intended recipient you may not read, use, disseminate or copy the information transmitted. If you have received this message by mistake, please contact the sender and delete the material from any computer.
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22-2-2005
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
