Hee hee, secret feature …
Did you ever try:
yamlvar: "Testing, hello there!"
test: !include [[yaml-var]]
(requires Dataview for the
Be aware that this is not standard YAML (but many YAML preprocessors support it). Plus, it generates
YAMLWarning: Unresolved tag: !include … in the console.
Seems either the devs thought ahead, or just the used upstream library supports it. Yay!
!!inc also works. So maybe just CodeMirror uses js-yaml and that supports these, or maybe in turn uses
Interestingly enough, Dataview picks it up and Templater doesn’t:
So I’d add to this feature request:
Please officially support the
!include (preferred) or
!!inc syntax, so we don’t see warnings all the time.
*EDIT: Too bad, so sad! After more testing, I found that it’s not
!include working but an odd Dataview “feature”, because using
test: [[yaml-var]] turns out to work the same!
Still I’d support this FR, by having
!include officially supported in YAML frontmatter.