Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport Jinja2 filters #10
Comments
shawnmjones
added
the
enhancement
label
Jul 10, 2019
shawnmjones
self-assigned this
Jul 10, 2019
This comment has been minimized.
This comment has been minimized.
This is currently working in the branch at cf19df1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shawnmjones commentedJul 10, 2019
Raintale templates are based on Jinja2 templates. With the addition of preferences, Raintale templates are no longer Jinja2 compatible, but Jinja2 filters would still be useful to users.
The differences:
Raintale should still support Jinja2 filters.
Preferences are handled like so:
{{ variable|prefer key=value,key2=value2 }}
Jinja2 filters could be added to the mix like so:
{{ variable|prefer key=value,key2=value2|filter1|filter2(arg1, arg2)|filter3 }}