Using the Template tp object outside of Templater scripts? like in the Console or CustomJS? #1247
Unanswered
Oneechan69
asked this question in
Help
Replies: 1 comment
-
You can read through the Templater source code to see what Obsidian API methods Templater is calling, and do something similar. I'd recommend against calling Templater directly since Templater is stateful, you'll need to perform setup and teardown before and after your script respectively for everything to work properly. If you call Templater commands using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For instance, I want to use
tp.file.create_new()
inside either the devtools console or in a CustomJS script, even if I could do what those templater functions with the Obsidian API directly.Beta Was this translation helpful? Give feedback.
All reactions