SurfGen
SurfGen copied to clipboard
New fields in configuration file and libraries version up
- Added new environment fields to the surfGen configuration for using custom variables within Stencil templates.
- Updated the SwagGen library, adding the pattern field.
- Updated the Stencil library for easier syntax when removing empty lines and spaces.
Usage of environment:
/// If located at the root, it is accessible in all Stencil files through {{ variable1 }} or {{ variable1 }}
environment:
variable1: value1
variable2: value2
templates:
- type: service
/// If located in the template, it is only accessible in the service Stencil files.
/// However, if the keys match the root environment,
/// the value from the root environment will not work.
/// In this case, {{ variable2 }} in the service template will return `templateValue`.
environment:
variable2: templateValue