Skip to content

Scripts, importing or linking CSS or JS file from HTML note. #1568

Answered by zadam
MorganeLeCaignec asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, so this is a complicated topic. Normally inclusion of dependencies is done through the note hierarchy - when a render note or script is getting executed, then the whole subtree is automatically loaded.

How do you reference another code note/file if the normal "file path" method doesn't work, how do import a JS note into another, etc..?

It's the same story, dependency relationship is expressed through the parent-child relationship, where child is the dependency. You can include same note as dependency into multiple parents using cloning.

where "vis.js" is a child file of the JS Code note. That works, but I don't know if it's because child code notes are automatically "loaded" or if …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MorganeLeCaignec
Comment options

@zadam
Comment options

Answer selected by MorganeLeCaignec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants