Re:Using the C preprocessor as an HTML templating engine
by ch33zer on Sunday June 16, 2024 @09:38PM
(#40701582)
Why not go all out? Use -DUSERNAME=$USERNAME on the command line to pass in data? Define macros with parameters to affect rendering in complicated ways. Call cpp for every request to generate the html. Could be fun!
[ Parent
| on HN ]