|Overriding Vorto Code Templates [message #1725339]
||Wed, 02 March 2016 16:55
| Nagavijay Sivakumar
Registered: August 2015
User should have the ability to override default template at runtime or extend the generator template at design time. |
Few typical scenarios :
Design time :
1. For iOS/ android generator, the generation code can vary as little as package name changes whenever there is a newer version. Instead of creating whole new generator, there should be a possibility to extend the template at the design time.
A generator can be overriden at runtime for adding certain client related information. For example rest api code generator can have domain name url pattern based on client specific additional code generation requirement.
Few Implementation options:
- Provide Interface for part of the Template to override all or certain parts of code snippet.
- Provide user option to upload template at runtime to override the default template with that of overriden template.
PS: This topic is slightly related to Configurable Vorto Generators? - https://www.eclipse.org/forums/index.php/t/1075273/
[Updated on: Wed, 02 March 2016 16:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01953 seconds