Hi Thomas,
For me it looks that ALL parameter will be converted to STRING
Let's go into concrete
------------ How to be defined -------------
{{velocity}}
#set($list = $xcontext.macro.params.listX)
list = $list
#foreach($x in $list)
item = $x
#end
{{/velocity}}
------------ How to apply -------------
{{velocity}}
#set($list =["aha","oho"])
{{passList listX=$list /}}
#set($list =["aha","oho"])
{{passList listX=list /}}
#set($list ="aha oho")
{{passList listX=$list /}}
{{passList listX="aha|oho" /}}
{{passList listX=["aha","oho"] /}}
{{passList listX="aha","oho" /}}
{{passList listX=[aha,oho] /}}
{{passList listX=aha,oho /}}
{{/velocity}}
-------- this is the output ----------
list = [aha,
list = list
list = aha
list = aha|oho
list = [
list = aha
list = [aha,oho]
list = aha,oho
-----------------------------------
Stefan Bachert
--
View this message in context:
http://n2.nabble.com/macros-and-lists-tp4611119p4617869.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.