Compiling a Static Web Site Using the C Preprocessor
1–7 of 7 posts
Re: Compiling a Static Web Site Using the C Preprocessor
#2"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
#3I thought about m4 all the time while reading through that post...
Re: Compiling a Static Web Site Using the C Preprocessor
#4> 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
#5Maybe 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 is parsed as macros. /s
Re: Compiling a Static Web Site Using the C Preprocessor
#6Congrats, 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 is parsed as macros. /s
Re: Compiling a Static Web Site Using the C Preprocessor
#7Congrats, 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 is parsed as macros. /s
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..."
That probably holds true for any one written in C. Maybe even some others that use server-side view generation.