Handlebars Dynamic Templating
approvedby Hide_D
Handlebars dynamic templating. Define template files and use them dynamically via hb blocks. Template recursion is also possible.
Handlebars Dynamic Template for Obsidian
Overview
This is a plugin that allows you to use Handlebars templates in Obsidian.
You can check the syntax at https://handlebarsjs.com/guide/.
How to Use
Suppose you have the following Handlebars template:
#### {{title}}
> [!{{t1}}]
> {{t2}}
Hello world!
{{#each alist}}
- {{this}}
{{/each}}
To use this, enter the following in Obsidian:
### Example
The code block below will be changed
```hb
tpl: test1
title: Main Title
t1: For example
t2: "**This** is also possible!"
alist:
- One
- Two
- Three
```
When you do this, the template will be applied as follows:
### Example
The code block below will be changed
#### Main Title
> [!For example]
> **This** is also possible!
Hello world!
- One
- Two
- Three
Hope you find it useful.
How to Write Templates
For instructions on how to write templates, please refer to How to Write Templates.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.