tomtom-international / asciidoxy

AsciiDoxy generates API documentation from Doxygen XML output to AsciiDoc.
Apache License 2.0
31 stars 10 forks source link

Use importlib.resources to load templates from the package #57

Closed silvester747 closed 2 years ago

silvester747 commented 2 years ago

There is a new method to get access to resources inside a python package: importlib.resources Use this to load the templates. Starting python 3.9 there is also the new importlib.resources.files API. This is also available as a backport package importlib_resources.

Complication: custom Mako template lookup is needed to support using this.