Skip to content
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

allow loading jinja templates from filesystem #70

Merged
merged 2 commits into from
Mar 22, 2021
Merged

Conversation

drakaru
Copy link
Contributor

@drakaru drakaru commented Mar 21, 2021

This PR allows for referencing jinja templates by filesystem.
This mechanism also allows for template inheritance.
Existing embedded templates are unaffected.

Readme/Contributing mentions writing tests, though there are no existing tests relating to jinja.

To use, in rule yaml:
alert_text_type: "alert_text_jinja"
jinja_template_path: "path/to/template"

@jertel jertel merged commit c8949c1 into jertel:alt Mar 22, 2021
@jertel
Copy link
Owner

jertel commented Mar 22, 2021

Thanks for the contribution!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants