openapipages
openapipages copied to clipboard
What about moving templates into their own HTML files instead of keeping them as Python strings?
What about moving templates into their own HTML files instead of keeping them as Python strings?
The first option that came to my mind to achieve this was Jinja2 but we must keep dependencies as simple as possible.
This StackOverflow question looks very informing: How to read a (static) file from inside a Python package? - Stack Overflow
Some implementations: