News for hackers. Stuff that matters.
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:

  doctype html
  html {
    head {
      title Hello there
      script type='text/javascript' src='main.js'
    }
    body {
      p class='one two' {
        span Sample text
      }
    }
  }
Is there an HTML preprocessor using a similar language?
Re:Languages Which Almost Became CSS by K-Wall on Tuesday June 28, 2016 @08:44PM (#11998733)
Jade comes somewhat close but opts for the offside rule rather than brackets and abbreviates class and id with . and # respectively.
Re:Languages Which Almost Became CSS by jjcm on Tuesday June 28, 2016 @10:43PM (#11999165)
Just FYI, Jade has been renamed as Pug, for whatever reason. https://github.com/pugjs
Re:Languages Which Almost Became CSS by montogeek on Tuesday June 28, 2016 @11:36PM (#11999329)
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.
Re:Languages Which Almost Became CSS by nbclark on Tuesday June 28, 2016 @08:53PM (#11998786)
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?
Re:Languages Which Almost Became CSS by nbclark on Tuesday June 28, 2016 @09:20PM (#11998875)
Yeah you're right. I just meant HAML in that it's a less tag-heavy layout structure for html