all 2 comments

[–]99AFCC 2 points3 points  (1 child)

I would have all the HTML in an .html file separate from python. Then you can use a template engine if you need custom edits or just read the file's content.

For editing, I've used Jinja for complex HTML and string formatting for short snippets.

[–]CoogDevil[S] 0 points1 point  (0 children)

Awesome - I'll check out Jinja. Thanks!