Show HN: C Injection Compiler – Program your text files in C (git.sr.ht)
It's very early in development but it has just reached a working state so I'm
actually using it now to generate content for my website.
The idea is that it should be useful both for generating static files and for generating responses live in a server, which it should be able to do very fast since it all compiles to C code and one memory mapped file.
3 comments
[ 0.19 ms ] story [ 13.3 ms ] threadhttp://www.koanlogic.com/klone/
In Klone, you write .kl1 (and .inc) files that contain HTML/CSS/JS mixed with C. C is introduced with <% ... %> blocks, and can itself generate parts of the text using a function io_printf, which takes a request output stream handle, and printf-like arguments.