Comments (3)
Oh, sorry! I misunderstood. Obsidian won't download other files, so you need to figure out how to include that in another way. I would include the template in your code.
I wish you success in your dev efforts!
from obsidian42-brat.
Hi Ben, I am glad to hear from you. When I developed BRAT, at that time I learned that Obsidian only downloads three files from the published package on your repo:
- manifest.json
- main.js
- styles.css
all other files are ignored. I don' think that changed. (Correct me if I am wrong).
What you want to do is include your dependency on handlebars so it gets built into your main.js.
You can see for example in another plugin I developed the include of a third party library:
https://github.com/TfTHacker/obsidian42-strange-new-worlds/blob/44fb0d9f9cfd8ca01369e99ac137f32d2b9679aa/package.json#L27
Hope this helps.
from obsidian42-brat.
Thanks for your response. I think you are correct and that these three files are the only ones to be downloaded.
However, I was actually talking about a Handlebars template file, not the Handlebars library itself. The library is in my package.json
but gets compiled in to the outputted main.js
so that's fine. But I want to ship an example, default template file that can be used if the user does not define their own.
I'm wondering if I should just include this template directly in the source code, so it ends up in main.js
instead of trying to read it from disk. I guess the other option would be to write it to disk on plugin load (if it does not already exist).
Any thoughts on this?
Thanks
from obsidian42-brat.
Related Issues (20)
- i had release main.js in my package but it still show this error HOT 1
- Unable to install latest version of plugin HOT 2
- Respect minAppVersion when installing/updating plugins HOT 2
- Logging location? HOT 1
- Beta plugin updates do not complete HOT 2
- Theme downloads are not tracked HOT 1
- [BUG] error in grabManifestJsonFromRepository HOT 4
- Uninstalled plugins not offloading from data.json HOT 3
- Feature Request: Savestate Plugin-Enabled-State, then mass-disable all plugins HOT 1
- Theme Files HOT 1
- Console error on missing optional styles.css HOT 2
- BRAT Not grabbing latest version HOT 1
- Command palette option for forcing installation/reinstallation of plugins added to BRAT HOT 3
- "main.js not found in the Release" HOT 1
- Can BRAT detect if plugins are uninstalled and ask before reinstalling them? HOT 5
- Is it possible to add support for proxies? HOT 3
- Feature Request: accept .git links when wrtiting / pasting the repo URL for adding plugins HOT 1
- Option to favor theme.json than theme-beta.json HOT 4
- Doesn't recognise or allow main.ts files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian42-brat.