Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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