News for hackers. Stuff that matters.
Re:Universal Jinja: a crazy idea for a Python-ready front end by meowface on Saturday July 15, 2017 @01:57PM (#14777961)
I like Jinja. What's a Python templating language you prefer to it?
Re:Universal Jinja: a crazy idea for a Python-ready front end by penpapersw on Saturday July 15, 2017 @02:06PM (#14778014)
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).
Re:Universal Jinja: a crazy idea for a Python-ready front end by s_kilk on Saturday July 15, 2017 @03:23PM (#14778430)
Shameful plug, I liked hiccup so much I "ported" it to elixir: https://hex.pm/packages/sneeze
Re:Universal Jinja: a crazy idea for a Python-ready front end by escherize on Sunday July 16, 2017 @12:47PM (#14782809)
I love hiccup so I wrote http://escherize.com/hiccup.space
Re:Universal Jinja: a crazy idea for a Python-ready front end by draegtun on Sunday July 16, 2017 @08:43AM (#14781749)
Just to note they are equivalents in other languages including Hiccup's grandfather CL-WHO - https://stackoverflow.com/questions/671572/cl-who-like-html-...
Re:Universal Jinja: a crazy idea for a Python-ready front end by ergo14 on Saturday July 15, 2017 @04:16PM (#14778702)
Imo jinja2 and Mako are the best template systems for python - both have their own strongpoints.
Re:Universal Jinja: a crazy idea for a Python-ready front end by nthcolumn on Saturday July 15, 2017 @03:08PM (#14778345)
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.
Re:Universal Jinja: a crazy idea for a Python-ready front end by jeeyoungk on Saturday July 15, 2017 @11:41PM (#14780353)
Your "x and x and and x" sentence is about hard to parse! I was wondering whether you hated handlebars and mustache also.
Re:Universal Jinja: a crazy idea for a Python-ready front end by amyjess on Sunday July 16, 2017 @11:08AM (#14782286)
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.

Re:Universal Jinja: a crazy idea for a Python-ready front end by meowface on Monday July 17, 2017 @11:59PM (#14794178)
I like it too, but for larger projects I think Jinja lets you repeat yourself less.