3 ms·
The Elm website is blank without JavaScript enabled. Here's a script to extract the Markdown in the given page and optionally format it without having to enable
by pflanze 12y ago
The Elm website is blank without JavaScript enabled. Here's a script to extract the Markdown in the given page and optionally format it without having to enable JavaScript in the browser:
https://github.com/pflanze/de-elm https://github.com/pflanze/de-elm
(Edit: here's a copy of the content of the linked page:
https://github.com/pflanze/de-elm/blob/master/examples/announce-0.14.elm.md https://github.com/pflanze/de-elm/blob/master/examples/annou... .
Tell me if you don't like this and I'll remove it again.)
- jmite 12y agoI don't know why people always bring this up. Elm is a compile-to-JS language. The website is implemented in Elm.
- pflanze 12y agoI understand both points. Or more precisely, after viewing the source of the page, I made a good guess that the reason this is js only is that Elm, if I remember correctly, is the language that formats pages without (just) relying on CSS, by using JavaScript, thus I'm totally understanding; although I'd like to make the point that I only got there since I had seen Elm discussed previously, and looking at the regular code in the source and hence guessing that it's compiler output. Perhaps it's not wise for the creators of the language to presume as much. So, there's a practical point to this, which is that I wanted to read the page, and a mixed practical/political point which is that I don't want to enable JavaScript if I don't absolutely have to. So I sat down and figured out what can be done...
- pasbesoin 12y agoBasically, I agree with the dissatisfaction with JS-mandatory basic, informative pages. I'm sure this will cease to be useful at some point, but for the moment, I find that some of the time, running the URL in question through Google Cache produces a useful view. Of course, Google properties themselves increasingly insist upon JS, even for basic "read-only" views. At least I have some confidence that Google is performing some measure of vetting their own JS against particularly the security problems that most concern me. Here's the OP URL, via Google Cache: http://webcache.googleusercontent.com/search?q=cache:http%3A%2F%2Felm-lang.org%2Fblog%2Fannounce%2F0.14.elm http://webcache.googleusercontent.com/search?q=cache:http%3A...
- 3rd3 12y agoWhy doesn’t elm provide text content separately in a machine-readable format, for example in a set of hidden HTML elements?