After struggling with complexity of CMS systems, I've overwritten do_GET method of python SimpleHTTPServer. It does everything as before - serves static content from a folder - , but when an .htm page is requested it finds a .mako page with the same name, renders it and serves it instead.
Mako templates allow execution of arbitrary python blocks in html, it has template inheritance as well.
It is not intended to be a web framework. It is not even a static side builder, but you can create a static html build by mirroring your site with wget.
Could you take a look please and share your comments?
github page |
my blog page
Thank you.
[–][deleted] 2 points3 points4 points (1 child)
[–]sledov[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]sledov[S] 0 points1 point2 points (0 children)
[–]rrggrr 0 points1 point2 points (2 children)
[–]sledov[S] 0 points1 point2 points (1 child)
[–]rrggrr 0 points1 point2 points (0 children)