Closed farling42 closed 2 years ago
Read a JSON file, and use a handlebars template for the MD file.
Each entry in the JSON array will create a separate MD file using the specified template.
For Handlebars see https://handlebarsjs.com/
Basic function seems to be:
// compile the template var template = Handlebars.compile("Handlebars <b>{{doesWhat}}</b>"); // execute the compiled template and print the output to the console console.log(template({ doesWhat: "rocks!" }));
Read a JSON file, and use a handlebars template for the MD file.
Each entry in the JSON array will create a separate MD file using the specified template.
For Handlebars see https://handlebarsjs.com/
Basic function seems to be: