Re:Compiling a Static Web Site Using the C Preprocessor
by YngwieMalware on Friday February 05, 2016 @02:34PM
(#11043980)
Nice piece of history. You can see its age showing:
"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."
Re:Compiling a Static Web Site Using the C Preprocessor
by EvanPlaice on Saturday February 06, 2016 @11:37AM
(#11048379)
Congrats, you've re-discovered the same origin where PHP started nearly 20 years ago.
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
Re:Compiling a Static Web Site Using the C Preprocessor
by krapp on Saturday February 06, 2016 @11:54AM
(#11048473)
I wonder if one could propose that "any sufficiently complicated static website compiler contains an ad-hoc, informally specificed, bug ridden, slow implementation of half of PHP..."
"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."
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
That probably holds true for any one written in C. Maybe even some others that use server-side view generation.
I thought about m4 all the time while reading through that post...