Live data from Hacker News

Languages Which Almost Became CSS

eager.io

101–110 of 136 posts

Re: Languages Which Almost Became CSS

#101

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?

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

#102
post #9

"HTML is the kind of thing that can only be loved by a computer scientist. Yes, it expresses the underlying structure of a document, but documents are more than just structured text databases; they have visual impact. HTML totally eliminates any visual creativity that a document’s designer might have. — Roy Smith, 1993" Seems like an odd request in 1993. Sure, Prodigy had visual impact, but it was pretty hard to read…

You also have to think about who the audience was (Unix users) and what they were used to (Gopher, irc, plaintext email). With all of those technologies they were used to being in control of the styling of what they consumed. One person's styles for irc could be completely different than another's, and that was fine. The idea that things should be published with one rigid style which must be used to consume it was fo…

What burns me up is that CSS was supposed to allow site authors to have sensible defaults for their pages while enabling me to override them, and yet when I set a dark theme in Firefox all hell breaks loose.

Honestly, the web was better end-user experience for me on links in a terminal: I was able to read text and submit forms, and that's all I really need.

Re: Languages Which Almost Became CSS

#103

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?

It's kind of like HAML: http://haml.info/

Re: Languages Which Almost Became CSS

#104
post #101

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?

Jade comes somewhat close but opts for the offside rule rather than brackets and abbreviates class and id with . and # respectively.

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

#105

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?

It's kind of like HAML: http://haml.info/

More like SASS, HAML introduces a lot of syntax and is indentation-based right?

Re: Languages Which Almost Became CSS

#106

Earlier quoted context omitted.

It's kind of like HAML: http://haml.info/

More like SASS, HAML introduces a lot of syntax and is indentation-based right?

Yeah you're right. I just meant HAML in that it's a less tag-heavy layout structure for html

Re: Languages Which Almost Became CSS

#107
post #101

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?

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

Re: Languages Which Almost Became CSS

#109
post #9

"HTML is the kind of thing that can only be loved by a computer scientist. Yes, it expresses the underlying structure of a document, but documents are more than just structured text databases; they have visual impact. HTML totally eliminates any visual creativity that a document’s designer might have. — Roy Smith, 1993" Seems like an odd request in 1993. Sure, Prodigy had visual impact, but it was pretty hard to read…

You also have to think about who the audience was (Unix users) and what they were used to (Gopher, irc, plaintext email). With all of those technologies they were used to being in control of the styling of what they consumed. One person's styles for irc could be completely different than another's, and that was fine. The idea that things should be published with one rigid style which must be used to consume it was fo…

> With all of those technologies they were used to being in control of the styling of what they consumed. One person's styles for irc could be completely different than another's, and that was fine. The idea that things should be published with one rigid style which must be used to consume it was foreign and not all that attractive.

It's still not attractive to me, which is why I force my styling in Firefox on all website I visits. Though there's not much styling can be done in Firefox by default, but pretty happy with it

Re: Languages Which Almost Became CSS

#110
post #107
post #101

Earlier quoted context omitted.

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 :)
Post reply on HN