Is there any way to split a long line?
 
e.g.
 
# macro (aVeryLongMacroName $aVeryLongParameterName1
$aVeryLongParameterName2 $aVeryLongParameterName3
$VeryLongParameterName4)
 
I tried "\" at the end of the line but that wasn't it.
 
An alternative to using many arguments would be to use a single argument
that is a bean containing all the arguments. Is it possible in VTL to
create a new object in order to assign it's properties prior to a macro
call? Or perhaps create an object literal like in JavaScript?
 
e.g.
 
#macro (myMacro params)
  Hi $params.Name
#end
 
#myMacro({name: 'Steve'})
 
Cheers,
Steve.

Reply via email to