I’ve been rather frustrated with the django template system for quite a while. In javascript, I’m a big fan of “hyperscript” libraries that take a functional approach to DOM creation. I’ve wanted something similar in python for quite a while, so I finally ended up writing html_generators.
The library can be used to generate all of the html for your site, but it also inter-operates with the django template system very nicely.
My latest project at work used this library for my html generation (no templates at all), and I’ve been very pleased with it. I may not ever go back to templating.
I’d love to hear your thoughts on the library, or if you’ve ever seen any similar approaches.