diff --git a/.gitignore b/.gitignore index 1461968..95b6482 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,5 @@ dist # data management plan /output +*.wbk +~$* diff --git a/src/index.js b/src/index.js index 061c505..c11bb18 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,8 @@ const carbone = require('carbone'); // Generate a report using the sample template provided by carbone module // This LibreOffice template contains "Hello {d.firstname} {d.lastname} !" // Of course, you can create your own templates! - carbone.render('./node_modules/carbone/examples/simple.odt', data, function(err, result){ + //carbone.render('./scr/carbone/examples/simple.odt', data, function(err, result){ + carbone.render('./templates/clarity-deliverable-template.docx', data, function(err, result){ console.log('Generate a report using the sample template provided by carbone module'); if (err) { console.log(err); @@ -19,5 +20,5 @@ const carbone = require('carbone'); console.log('Report successfully generated using the sample template provided by carbone module'); } // write the result - fs.writeFileSync('output/result.odt', result); + fs.writeFileSync('output/result.docx', result); }); \ No newline at end of file diff --git a/templates/clarity-deliverable-template.docx b/templates/clarity-deliverable-template.docx new file mode 100644 index 0000000..033177e Binary files /dev/null and b/templates/clarity-deliverable-template.docx differ