Re: [xwiki-devs] [proposal] Enable some commons-lang classes as velocity tools
Sergiu Dumitriu wrote:
Hi devs, I'd like to enable some classes from the commons-lang library as velocity tools. [snip] Another issue is the name of the velocity variables for these. Isn't escapetool a bit too long? I'd drop the tool part where the remaining name does not cause conflicts, so that we would have: $escape $escapeUtils $alternator $iterator $sort $math $arrayUtils $booleanUtils $numberUtils $stringUtils $wordUtils $dateUtils $dateFormatUtils $durationFormatUtils $randomStringUtils $randomNumberUtils
Generally +1. About the naming : * I'd prefer to stick to $sometool (or even better $someTool) since it allow to differentiate user defined velocity variables from velocity tools easily, * I'd like capitalization ($someTool instead of $sometool) and it seems that we don't have a convention about this (see xwikivars.vm for example) for the moment. -- Jean-Vincent Drean
participants (1)
-
Jean-Vincent Drean