News for hackers. Stuff that matters.
Re:“Make” as a Static Site Generator by js2 on Sunday September 10, 2023 @11:28AM (#37456767)
I've only ever used m4 via autoconf and sendmail configuration files, so I don't know if it's m4 that has the bizarre syntax or whether it's autoconf's and sendmail's use of it. I'm not sure I've ever tried to use m4 directly for anything.
Re:“Make” as a Static Site Generator by m000 on Monday September 11, 2023 @08:29AM (#37466240)
That's why I wrote a "pinch" in the OC. m4 is arguably better than cat as a barebones template engine. The moment you start doing anything beyond simple includes and variable extrapolations, it is time to switch something more modern and robust.

I guess autoconf/sendmail still use m4 because there wasn't anything better at the time that doesn't come with a kitchensink attached.