Closed mjhuber closed 5 years ago
Adding support to for custom Jinja filters is fine but I don't think it will work to do what you want it to in RODD.
We talked offline and agreed that this is good work and worth adding to Pentagon Core but other work is required to implement the RODD issues. I'll move the work to implement the RODD prs over to: https://github.com/reactiveops/rodd/pull/46
Implements #171
This PR adds support for custom jinja filters, and I added one custom filter,
regex_trim
. Custom filters are required for more complex templates like what would be required to implement reactiveops/rodd#1 and reactiveops/rodd#37. Any methods defined in filters.py with the@filter
decorator will be loaded into the template environment for use.