]> git.ipfire.org Git - thirdparty/bind9.git/commit
Allow instantiating template dataclasses in jinja2 templates
authorNicki Křížek <nicki@isc.org>
Wed, 1 Apr 2026 17:42:38 +0000 (19:42 +0200)
committerNicki Křížek <nicki@isc.org>
Wed, 27 May 2026 14:19:31 +0000 (14:19 +0000)
commitdddb0673517ccbba50941d91dec3c55e1f7f52b4
treed1e0d1c2b19f73824de3f1215ee1c544cf49fc71
parentaa435b2e036a668d87579495cae1e31524a97f31
Allow instantiating template dataclasses in jinja2 templates

In some cases, the template data might need to be set directly in the
jinja2 templates using `{% set %}`. Expose the template dataclasses to
the templates so we can use these existing classes, rather than creating
ad-hoc data containers.
bin/tests/system/isctest/template.py