Hacker News new | past | comments | ask | show | jobs | submit login

I like Jinja. What's a Python templating language you prefer to it?



Randomly chiming in here, but now that I've used Hiccup (in Clojure) for a few years, nothing else seems evenly remotely pleasant to use. Especially when it's hooked up to a good IDE for super-easy key bindings (emacs + paredit for me).


Shameful plug, I liked hiccup so much I "ported" it to elixir: https://hex.pm/packages/sneeze


I love hiccup so I wrote http://escherize.com/hiccup.space


Just to note they are equivalents in other languages including Hiccup's grandfather CL-WHO - https://stackoverflow.com/questions/671572/cl-who-like-html-...


Imo jinja2 and Mako are the best template systems for python - both have their own strongpoints.


Also chiming in. I like Jinja and handlebars and mustache and JSX makes me want to puke. I love Ractive but hate React. Recently back on django and have done a bit of django-ractive messing about so yes it is crazy. It'll never work. You get them mixed up in your head and it makes your brain hurt. But maybe this is a better. I give it a go.


Your "x and x and and x" sentence is about hard to parse! I was wondering whether you hated handlebars and mustache also.


stpl, a.k.a. SimpleTemplate. It comes with Bottle, which is the project Flask was inspired by.

From what I've seen of other template languages, it resembles Mako the most, though some of the syntax superficially resembles Jinja2.


I like it too, but for larger projects I think Jinja lets you repeat yourself less.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: