Weblang posted April 2014
I've been writing html, xhtml, and now html5 for ages. I think I started in 2001 (13 years ago).
I had to go through
<br /> becoming
I had to go through different doctypes
I had to go through new divs like
But I never had to go through a syntax change. Why is that? I don't understand why HTML is a language based on tags. It is unnecessary and it just adds time and confusion to typing in html. I haven't ran into any project directed at changing that syntax. And I thought, why not doing it myself? (and if there is already such a project please tell me!)
So I thought about a new language to write static web pages called
weblang. No tags. Indentation. Simple doctype.
index.web would looks like that:
This is just a first draft. The biggest problem is that plain text and code is mixed. The trick I used here is to use $ to tell the render engine that it is not plaintext. Might not be super clever. I need to brainstorm a bit more about this.
Also I need to look at sass' code to see how a compiler works. Seems to be a bunch of regex.