3 ms·
I really like the approach which is similar to the Clojure library called Hiccup. Generating HTML in this way is very productive if you're doing the layout and
by papaf 16y ago
I really like the approach which is similar to the Clojure library called Hiccup. Generating HTML in this way is very productive if you're doing the layout and backend coding yourself. Traditional templating languages are a better fit when working with designers who will not want to read/write Python though.
However, I do feel the syntax is a little heavy compared to similar non-python libraries. It would be nice if it could be done with less characters - there is a lot of repeated 'p' and 'html' which pollutes the code. I have no idea if this can be improved upon in Python though.
Also, I'd recommend a big lovely README on the github page as people may end up there not having read the blog post.
- ljlolel 16y agoI tried putting the docs on GitHub, but GitHub unfortunately does not have an HTML option for the README as far as I can see. The markdown format should theoretically pass the HTML through, except that GitHub significantly modifies or ignores the tags so that the formatting is completely different. I will probably make a custom landing page a la Tornado.
- ljlolel 16y agoAlso, I'd like to add that even with the overhead of explicit p and html tags, this ends up being the same or fewer characters and fewer lines than traditional popular template systems including Jinja, django, and ERB