velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "White, Tim" <>
Subject Overloading VelociMacros?
Date Thu, 03 Jun 2004 15:50:16 GMT
Hi -

 Is it possible to overload VelociMacros?

 e.g. :

 #macro (showIfExists $object $path $preNode $postNode $preList
		#foreach($nodeValue in $object.getMMCList($path))
			#if ($nodeValue.getValue("self::"))
				$preNode $nodeValue.getValue("self::")

#macro (showIfExists $object $path $preNode $postNode)
	#showIfExists ($object $path $preNode $postNode "" "")

I ask because VelociMacros can't have optional parameters. :)

I tried it and it seemed to take only the second one.  Just making sure
there's not a trick I'm missing... :)



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

View raw message