oduwsdl / raintale

A Python utility for publishing a social media story built from archived web pages to multiple services.
https://oduwsdl.github.io/raintale
MIT License
11 stars 3 forks source link

Support Jinja2 filters #10

Closed shawnmjones closed 3 years ago

shawnmjones commented 5 years ago

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 }}

shawnmjones commented 5 years ago

This is currently working in the branch at cf19df107d894da9298aa50c728276d61e784bbf.

shawnmjones commented 3 years ago

This has been done for a while.