News for hackers. Stuff that matters.
Re:Notes on the M4 Macro Language (2008) by jjice on Thursday May 19, 2022 @08:18PM (#31441901)
Wanted a template script recently. I thought for a bit about it and realized that PHP is pretty perfect for the job. Worked well for simple dynamic templates, and no dependencies outside of PHP.
Re:Notes on the M4 Macro Language (2008) by jamesfinlayson on Thursday May 19, 2022 @10:15PM (#31442601)
I remember a sysadmin doing the same thing at a previous job (I think he used it for generating PXE boot scripts or something like that) - as you say, great for simple dynamic templates and PHP was the only dependency.
Re:Notes on the M4 Macro Language (2008) by kreetx on Friday May 20, 2022 @01:31AM (#31443724)
Did a bigger school project in m4, learnt it for the task, only later realizing that PHP which I already knew would have been much better.