Improve documentation on templates
koosvanderkolk opened this issue · comments
Thanks for the great module, checking it out.
I think the documentation on "Writing templates" can be improved.
For me, I just wanted to know what the docx template would look like for e.g.
const report = await createReport({
template,
data: { name: 'John', surname: 'Appleseed' },
cmdDelimiter: ['{', '}'],
});
It is just:
{name}
{surname}
It would be great if this is just documented, instead of a referral to an example.
Just want to say that I had the same experience having just come across this project, looked through the node examples folder and could not find one example that would simply show John Appleseed.
Good points! I have simplified the docs based on your suggestions. ac2e4ae