farling42 / obsidian-import-json

Plug-in for Obsidian.md which will create Notes from JSON files
MIT License
88 stars 5 forks source link

Basic Design #1

Closed farling42 closed 2 years ago

farling42 commented 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!" }));