> I'm generating my Knot's config from a Jinja2 template, and I'm having a > problem with one thing. For example, if I have a list of elements, > [e1,e2,e3,e4], and I want to generate a "groups" config for these based > on a condition
Quite off-topic for a DNS list, but have you considered using a Jinja2 `join' filter? {{ [1, 2, 3] | join(',') }} renders as 1, 2, 3 leaving off the last separator "," in this case. -JP _______________________________________________ knot-dns-users mailing list knot-dns-users@lists.nic.cz https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users