Re:Notes on the M4 Macro Language (2008)
by nick__m on Thursday May 19, 2022 @08:54PM
(#31442144)
I used envsubst when I can but as far as I know you cannot do loop using envsubst. When you use the c preprocessor or php, m4, etc..., you can.
[ Parent
| on HN ]
Nah, that's what I meant. It does $-expansion and that's it. If you need conditionals and loop you need templates and macros like others are saying: m4, cpp, handlebars, whatever.
I use it as a low-brain template engine to do only that.