News for hackers. Stuff that matters.
Re:Universal Jinja: a crazy idea for a Python-ready front end by ben_jones on Saturday July 15, 2017 @01:45PM (#14777880)
Can someone explain to me why we haven't normalized html templating with a Pug-like syntax (formally Jade)?

My perceived benefits of Pug/Jade:

* Significantly fewer LOC

* Improved Readability

* A lot of existing tooling thanks to its popularity in the NodeJS community

Re:Universal Jinja: a crazy idea for a Python-ready front end by s_kilk on Saturday July 15, 2017 @01:49PM (#14777916)
Probably just the cost of making high-quality ports of Pug in every language.
Re:Universal Jinja: a crazy idea for a Python-ready front end by benologist on Saturday July 15, 2017 @01:50PM (#14777924)
It seems to me like headless browsing (now in Node) will make it pretty easy to construct your page using the DOM directly on the server without scattered logic and DSLs.
Re:Universal Jinja: a crazy idea for a Python-ready front end by mixmastamyk on Saturday July 15, 2017 @04:26PM (#14778744)
So I'm thinking what the heck is pug?, and looked it up.

Looks to be "haml with templating" in a single language. Great idea.

Re:Universal Jinja: a crazy idea for a Python-ready front end by InstanceOf on Saturday July 15, 2017 @02:57PM (#14778291)
Vuejs can be configured to use pug.