Just using Django as an ORM and not a templeting library
https://en.wikipedia.org/wiki/Genshi_(templating_language)
https://pythonhosted.org/Genshi/templates.html
https://genshi.readthedocs.io/en/latest/api/template/
Templating languages that use almost-but-not-quite-entirely-unlike-XML or -HTML don't work well with standard XML and HTML tools, because they don't recognize XML-or-HTML-with-some-magic-non-standard-syntax-sombody-nailed-on-to-the-side.