velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <>
Subject Macro Doesn't Work 1st Time
Date Sun, 11 Jan 2004 17:45:53 GMT
For as long as I can recall, I've had a problem with Velocity templates that contain macros
not working the first time - after the first time they work fine.  Here's a simple example:

#show("My Message")

#macro(show $msg)

On my system, the first time I invoke this template I get this: ("My Message").  Subsequent
times I get "My Message" highligted properly with the H1 tag.

My file includes:
= true

Appreciate any thoughts/advice on whether this is a bug, or if I'm not initializing something



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message