velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Yu" <>
Subject Escaping of the # character in macro calls, should it be in the users guide?
Date Tue, 09 Jul 2002 13:32:16 GMT
Hi all,

May be the following condition should be mentioned in the users docs
since it is not very apparent to new users:


#macro (m)
    In macro \#m <br>

#macro(m1 $arg)
    In macro \#m1 with argument $arg <br>

    #m1("This will error out, #m")
    #m1("This will also error out, \#m")

    #set ($poundChar = "#")
    #m1("This is ok, ${poundChar}m")


Ed Yu, IBM Certified Specialist - AIX System Administrator
Information Technology Manager,
University of South Carolina,
Advanced Solutions Group, Physics Dept.,
Columbia, SC 29208
Office (803)777-8831, FAX (803)777-8833, Email

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

View raw message