Re:Languages Which Almost Became CSS
by pablovidal85 on Tuesday June 28, 2016 @08:40PM
(#11998717)
I'd like to see CSS-shaped HTML like this:
Is there an HTML preprocessor using a similar language?
[ Parent
| on HN ]
Jade comes somewhat close but opts for the offside rule rather than brackets and abbreviates class and id with . and # respectively.
Just FYI, Jade has been renamed as Pug, for whatever reason. https://github.com/pugjs
Legal reasons :)
Re:Languages Which Almost Became CSS
by pablovidal85 on Tuesday June 28, 2016 @08:56PM
(#11998794)
Exactly, I'm looking for one that uses brackets instead indentation and the rest is left untouched (no abbreviations or at least not mandatory). I can't find anything already done but at the same time is hard to believe is not done already.
It's kind of like HAML: http://haml.info/
Re:Languages Which Almost Became CSS
by pablovidal85 on Tuesday June 28, 2016 @08:58PM
(#11998806)
More like SASS, HAML introduces a lot of syntax and is indentation-based right?