danielo515 / obsidian-modal-form

Define forms for filling data that you will be able to open from anywhere you can run JS
https://danielorodriguez.com/obsidian-modal-form/
MIT License
199 stars 17 forks source link

[DOCS] how to create safe and clean templates using templater scripts #173

Closed danielo515 closed 7 months ago

danielo515 commented 8 months ago

This belongs to the advanced uses section.

Using templater scripts,in combination with the get method we can create compostable and safe building blocks for templates.

Get will only call the user script if the value exists. The user functions can take a value and return the proper markdown with as complex logic as you wish