I'm hacking a quick and dirty python script to generate some reports as static html files.
What would be a good module to easily build static html files outside the context of a web application?
My goals are simplicity (the HTML will not be very complex) and ease of use (I don't want to write a lot of code just to output some html tags).
I found two alternatives on my first goolge search:
Also, I feel that using a templating engine would be over-kill, but if you differ please say it and why.
Any other recommendation?
Maybe you could try Markdown instead, and convert it to HTML on the fly?
You don't necessarily need something complex - for instance, here's a ~150 line library to generate HTML in a functional manner:
http://github.com/Yelp/PushmasterApp/blob/master/pushmaster/taglib.py
(Full disclosure, I work with the person who originally wrote that version, and I also use it myself.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With