-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to include common code into velocity templates #144
Comments
Incudes could simply appear like normal buildstate templates, but have a type to identify them as such, and an ID so they can be included by reference. |
Would it be possible to share macros and use them without defining them in the template self? |
@Super8film87 where do you imagine they would be stored if not in the template? Would you want macros available to multiple templates? I've been thinking about this and haven't come up with an elegant solution for that. |
So right now I work on a centralized template for all our projects -> single source & send all data to elasticsearch (thats the reason why I send all parameters) -> sharing macros could enable to share same data over multiple templates e.g. product ,infra, dev -> more modularity to the needs of the different users. Also possible to create a modular template with macros
|
There should be a way to "include" code in a velocity template.
Currently any macros need to be added to the top of every event template.
Velocity supports including other files, I just need to figure out a way to do with without actual files.
The text was updated successfully, but these errors were encountered: