4 ms·
I like Jinja. What's a Python templating language you prefer to it?
by meowface 9y ago
I like Jinja. What's a Python templating language you prefer to it?
- penpapersw 9y agoRandomly 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).
- s_kilk 9y agoShameful plug, I liked hiccup so much I "ported" it to elixir: https://hex.pm/packages/sneeze https://hex.pm/packages/sneeze
- draegtun 9y agoJust to note they are equivalents in other languages including Hiccup's grandfather CL-WHO - https://stackoverflow.com/questions/671572/cl-who-like-html-templating-for-other-languages https://stackoverflow.com/questions/671572/cl-who-like-html-...
- escherize 9y agoI love hiccup so I wrote http://escherize.com/hiccup.space http://escherize.com/hiccup.space
- nthcolumn 9y agoAlso 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.
- jeeyoungk 9y agoYour "x and x and and x" sentence is about hard to parse! I was wondering whether you hated handlebars and mustache also.
- ergo14 9y agoImo jinja2 and Mako are the best template systems for python - both have their own strongpoints.
- amyjess 9y agostpl, 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.
- meowface 9y agoI like it too, but for larger projects I think Jinja lets you repeat yourself less.