A while ago I hacked the ability to read files and write files into jq 🙈 Here’s some of the resulting code that writes to a bunch of files:
poems | reverse | add_numbers | map(compile_single) | [ write("index.html"; .[-1].content), map(write("poem_\(.number).html"; .content)) ] | flatten
A while ago I hacked the ability to read files and write files into jq 🙈 Here’s some of the resulting code that writes to a bunch of files: