Closed HamedFathi closed 7 years ago
Hi
I have this
const njks = path.join(__dirname, 'Nunjucks', '**', '*.@(njk|nunjucks)'); const njkFiles = glob.sync(njks);
How to configure your plugin with multiple .njk templates ? your snippet code have one .njk and one template`s result.
@HamedFathi you can use template:[{from: 'foo.njk', to: 'bar'}, {from: 'bar.njk', to: 'foo'}] options for multiple templates
template:[{from: 'foo.njk', to: 'bar'}, {from: 'bar.njk', to: 'foo'}]
@evilebottnawi
Thanks yes it works, please add this tip to your README.md.
Hi
I have this
How to configure your plugin with multiple .njk templates ? your snippet code have one .njk and one template`s result.