Nice piece of history. You can see its age showing:<p>"Rather quickly it was realized that if you want to ensure a reasonable user experience both on desktops and mobiles, there is absolutely no way you can use the same HTML for both sites."
Congrats, you've re-discovered the same origin where PHP started nearly 20 years ago.<p>Maybe you could replace the generic c preprocessor dialect with a new domain specific DSL. For instance one where macros can simply be embedded directly into HTML. For instance everything between the <? and ?> is parsed as macros. /s
> In fact, almost any kind of text processor can be used to compile web sites in a similar way to what has been described above (for example, m4 ...<p>I thought about m4 all the time while reading through that post...