A tale in 3 pictures. In which our hero wonders if he can and doesn't stop to ask if he should.
A tale in 3 pictures. In which our hero wonders if he can and doesn't stop to ask if he should.
@citizen428 I mean it has simple uses too, like adding simple include statements in any file, or, as you've shown, macros.
I've used it to make a lockfile for my Containerfile, and I'd just build using cpp -E <file> | docker build -f- <...>
So, it's some kind of chtml...
(you'll definitively want to put the ```#define HTML``` in a .h.tml file included by abuse.c)
@siguza Maximum cursed is what I was going for, so yes. If you prefer CGI and another web server you could use kcgi:
@citizen428 Thanks for sharing the code.
In a weird way, this is exactly what the C preprocessor is designed to do.
I still don't want to debug a bigger website though. 
@citizen428 old and busted: php as a c preprocessorΒΉ
hot and new: c preprocessor as a php
ΒΉ https://stackoverflow.com/questions/396644/replacements-for-the-c-preprocessor/16256052#16256052
Edit: Originalquelle verlinkt
@citizen428 @joe Hey, guess what syntax the C preprocessor strips out for you?
Guess what syntax is really common in web pages? (and also property lists, where I first encountered this clash)