Velocity Code Style
Last modified by Vincent Massol on 2021/06/15 14:44
Velocity scripts must follow these rules:
- Use 2 spaces for indentation
- Use single quotes for strings that don't need to be parsed/interpreted. This improves performances.
- Always capture the result of a method call in a variable to avoid side effects (things output to the result: what the method returns or unwanted empty lines). For example:#set ($discard = $someVar.someMethod())