Extending velocity support in File Templates

If the name of a file or class is Automobile, it might have a property or string "automobile" lower case "a". Is there a function that can be invoked in the Velocity template to lowercase the $NAME?

Or better yet, is there a way to add new objects and methods to the Velocity context that can be invoked? One could add a reference to OpenAPI objects or the project itself and fetch project associated properties. Or cause other files (such as XML configuration) to be updated when a new file is created using a FileTemplate. Thank you.

Fred

Please sign in to leave a comment.