velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Papotti" <b...@ettelematica.it>
Subject velocimacro as parameter
Date Fri, 05 Oct 2001 10:18:23 GMT
can I define something like:

#macro (bold $text)
<b>$text</b>
#end

#macro (center $what)
<p align="center"> $what </p>
#end

and then use

#center( #bold( "Hello world") )

or

#center( "#bold( "Hello world")" )

or something similar?

I.E. Is it possible to use a valocimacro as parameter of another one?


Andrea. =8-)







Mime
View raw message