News for hackers. Stuff that matters.
Re:Ask HN: General Purpose Templating Engine by necovek on Tuesday May 24, 2022 @12:51PM (#31494513)
Most templating engines can produce any format even if their directives are XML-like.

Taking input from JSON is probably rarer because all of them are programming language focused.

For CLI, you could combine it with things like jq (there was also something else that allowed using css selectors on JSON) and other tools like awk.

Or you could simply use PHP for a built in templating language (i.e. put <? ?> statements into whatever your file format is).

There are no comments on this comment yet.