I think jekyll does something similar, which is allowing data to be set right in the template. I feel like this pairs with another issue somewhere about setting data in frontmatter, but I recall some scenario where I needed to to do something with a reusable checklist like:
## Version one
- [x] implements A
- [ ] implements B
- [x] implements C
## Version two
- [ ] implements A
- [x] implements B
- [x] implements C
It seems like if it were a long list and several versions, it would be useful to have the list in a template and apply the data like
// when {"a": "checked", "c": "checked"} as data
- [${data.a}] implements A
- [${data.b}] implements B
- [${data.c}] implements C
// when {"a": "checked", "c": "checked"}
// insert list.md
I think jekyll does something similar, which is allowing data to be set right in the template. I feel like this pairs with another issue somewhere about setting data in frontmatter, but I recall some scenario where I needed to to do something with a reusable checklist like:
It seems like if it were a long list and several versions, it would be useful to have the list in a template and apply the data like