How to share functions between dv.view() scripts #1323
Unanswered
claremacrae
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'd actually recommend building your user script library in CustomJS. It becomes reusable across other plugins like templater and is somewhat cleaner IMO. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got two scripts for use with
dv.view()
. I'm super happy with their behaviour, and will create more.The problem is that they are using a few helper functions, and I haven't managed to find out how to move the common code to a 3rd file, so I can maintain only a single copy of the helper code.
I'd really appreciate any pointers, please. Thanks.
What I tried
new file -
tasksBlock.js
:old file -
view.js:
result:
Beta Was this translation helpful? Give feedback.
All reactions