You can download the raw templates via Klaviyo's API, but how to render them once we have them so as to avoid having to implement that parsing ourselves? It looks like Jinja2.
Their APIs only support one-at-a-time rendering, so it's not possible to use their API for this task at scale.
Close. It seemingly uses Django. There are no references anywhere except for this implication from the page with the list of supported filters:
https://developers.klaviyo.com/en/docs/glossary_of_variable_filters
For convenience, the code to render a template (via Python) while loading the bare minimum of the Django project with no configuration requirement:
Output: