Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.
Basically, turn a note into a small, simple, runnable thing.
- Install and enable the plugin
- Paste the Markdown below into a new note.
- If you are in Reading or Live Preview modes, click the 'Run' button. If you are in Source mode, choose
Meld Build: Run
from the command pallette.
```meld-build-toolbar
```
```js meld-build
const ans = await $.ui.ask('What should I call you?');
await $.ui.message( `From this day forth you shall be known as ${ans}` );
```
- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/meld-build/
.