Hacker News new | ask | show | jobs
by jessaustin 2931 days ago
Seems pretty similar to pug/jade, other than not needing parentheses for tag attributes? (which admittedly, has annoyed me in pug) If I had to go to Ruby-land, I would use slim...
1 comments

Looking at both and their timelines, I’d think pug may be based on slim which is a great thing.

Slim has been around for years, steadily improving and addressing corner cases.

I absolutely love it. Reduces typing by 50%, reading by 1000+%(as I re-read the code multiple times and it eliminates the multiple takes and looking for closing tags) and matches how my human brain thinks about markup.

Slim v0.1: Sep 15, 2010

Pug (actually Jade at the time) v0.1: Jul 5, 2010

I'm thinking these are "convergent evolution", especially since they arose in different language communities.

I totally agree that this is the best way to generate HTML. I use pug even for really tiny pages and templates. It amazes me that people like JSX, which seems like a total regression from building elements with function calls like React originally had. When I code Cycle.js in coffeescript it looks and feels a lot like pug; which is great.