0

Is it possible to define several velocity macroses?

Like this:

#macro (cap $strIn)
    $strIn.valueOf($strIn.charAt(0)).toUpperCase()$strIn.substring(1)
#end
##
#marco (lowFirst $strIn)
    $strIn.valueOf($strIn.charAt(0)).toLowerCase()$strIn.substring(1)
#end
Vladimir
  • 12,753
  • 19
  • 62
  • 77

1 Answers1

0

Yes, it is possible to define several Velocity macros.

Nathan Bubna
  • 6,823
  • 2
  • 35
  • 36