dv.view transcluding some of my code? #1714
Unanswered
ReaderGuy42
asked this question in
Q&A
Replies: 0 comments
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 feel like I'm almost getting it, but not quite.
I think I just don't understand the documentation well enough.
I have a file called scriptbits.js in a folder (in my vault) called Script, so I've tried putting in
await dv.view("Script/scriptbits")
in my attempted code.This is what my code looks like:
And this is what's currently in scriptbits.js:
But then I still get the error
pagesum not defined
. What am I missing? Is what I'm trying to do possible?Thanks!
(See here for my thread on the Obsidian Forum: https://forum.obsidian.md/t/is-it-possible-to-transclude-code-blocks-somehow/50973?u=readerguy42 )
Beta Was this translation helpful? Give feedback.
All reactions