News for hackers. Stuff that matters.
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..."
Re:Compiling a Static Web Site Using the C Preprocessor by EvanPlaice on Saturday February 06, 2016 @05:58PM (#11050428)
Haha, I never thought of it like that before.

That probably holds true for any one written in C. Maybe even some others that use server-side view generation.

Re:Compiling a Static Web Site Using the C Preprocessor by m6w6 on Friday February 05, 2016 @04:32PM (#11044798)
> 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 ...

I thought about m4 all the time while reading through that post...

Re:Compiling a Static Web Site Using the C Preprocessor by Esau on Friday February 05, 2016 @05:24PM (#11045114)
The only time I ever used M4 was when trying to create a Sendmail configuration. I really disliked it.