obsidian-js-engine-plugin
obsidian-js-engine-plugin copied to clipboard
could you include an example of importing a function from a script in the README?
Hi,
I'm trying to write modular JavaScript and have one file for each script. It's not working out for me ;)
I'll explain more, but pretty sure it would be helpful just to show how it would work in your readme.
Okay I have nifty-links.js
vault/js/scripts/nifty-links
that has an exported function called "getFromOpenGraph(url)"
I have a nifty-links.css
./obsidian/snippets/nifty-links.css
This all works using a basic liveserver in a browser.
I want to use js-engine to call that function and pass it a URL, and then what should come back is rendered HTML.