]> 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 09:36:55 +0000 (11:36 +0200)
commit8cda065d496d97fa4107e593a68dff9d8dfb0c7d
treeaae206bbb6a104bf2d15a7987f3b730e4a58e0d8
parent6e31e36a0e78a7aa1b12f0482d5a98cf59179372
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