A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/torchbox/django-pattern-library/discussions/180 below:

Jinja2 support plan · torchbox/django-pattern-library · Discussion #180 · GitHub

It’s live! Thank you @gone, @luord, @edcohen08, @maribedran, @CuriousLearner for pushing this and making it happen!

I have released the work to date in version 1.5.0. Jinja support is marked as experimental to make it clear that there is still a reasonable likelihood there are unexpected support gaps. For example, as far as I can tell there is no way to override Jinja tags / functions / filters. Anyway, I’ve updated the docs to make it clear there is (some) Jinja support, and also the demo site:

If anyone wants to take this further, it would be great to have:

I think it’s a matter of manipulating the environment here: https://github.com/torchbox/django-pattern-library/blob/main/pattern_library/loader_tags.py#L199, to apply the overrides from the YAML in addition to context changes.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4