Skip to content

could you include an example of importing a function from a script in the README? #35

@mpstaton

Description

@mpstaton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions