Any advice on how to add fields/filters to the Jinja environment for document templates?
I need to show VAT and NET amounts on our invoices so I have been adding them to indico/modules/receipts/util.py like in this gist indico/modules/receipts/util.py · GitHub, then I can do the following <td>{{ registration.base_price|calc_vat }}</td>
Ideally, I would want to have this in a plugin but I can’t seem to figure out how to get these into the Jinja environment. It looks like the templates make a sandbox jinja environment and I can’t seem to update that from a plugin… Any help would be appreciated.