]> 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>
Thu, 28 May 2026 14:52:24 +0000 (16:52 +0200)
commit9851982d3fe395fe8e5f66247c19d81f4c82e634
tree3cb866d76d6e0a5a854415fc505b9e29bc0b2b88
parent5cd3e1b6a60102a968f53f5755fe87dd186ade4e
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.

(cherry picked from commit dddb0673517ccbba50941d91dec3c55e1f7f52b4)
bin/tests/system/isctest/template.py