Harbormaster uses the Apache Velocity Engine to apply certain features, options, and functions during project generation.
This is accomplished via template files and macros.
A template file is any file that contains Velocity directives to transform the file during project generation. A template file can be simple or complex and it’s eventually usage has no limits.
Project Generation Context
During project generation, useful and helpful variables are made available by Harbormaster within the Velocity context. Use these variables to assist in generating the desired outcome.
These context variables include:
||Offered as the entry point into the Harbormaster Metamodel. Use it to access and navigate the model loaded as part of project generation.
It also gives access to the options and option values provided as part of a project definition.
||The current class object within the model hierarchy being processed during project generation.
||Utility functions helpful during generation
||The Velocity escape tool used to output escape characters.
||Tool for performing math operations in Velocity.