4 个回答
For future reference, here is the answer :
nunjucks '**/*.xml' -p templatesdir -e xml configdata.json -o outputdir
This transforms all the XML template files in the templatesdir folder hierarchy, using json parameters stored in configdata.json, into the same files in the outputdir folder.