SilentVoid13 / Templater Public
generated from obsidianmd/obsidian-sample-pluginNew issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJS modules in script folder: Great idea, can they be used with Dataview? #236
Labels
Comments
|
Hey @Moonbase59, to answer your questions:
If you feel like it, you can have a look at how js files are loaded in Templater's code here: Templater/src/UserTemplates/UserTemplateParser.ts Lines 45 to 66 in b9ca081
|
|
Thanks for the info! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From an efficiency and code reusability standpoint: Fantastic idea to use a script folder and CommonJS modules.
Some questions:
When do they get loaded?
Are all loaded? (So we have to keep the folder small?) Or do they need to be required?
Would they work with Dataview JS (inside
dataviewjscode blocks)?Now that would be something …
The text was updated successfully, but these errors were encountered: