And apply it to a file that already has some frontmatter:
And I get this:
Things I have tried
I’ve tried wrapping parts of it in the <% %> tags to see if it helps with merging but getting strange behavior from that right now too –– two of the dashes disappear from view and I get a syntax error when applying the template.
This seems like a simple user error or plugin conflict – anyone seen this before?
If you already have Properties in the note to which you apply the template, you’d probably need to use something similar as Zachatoo’s “Update frontmatter” snippet.
I don’t think you can “merge” YAML/Properties automatically (but I could be wrong )
That makes a ton of sense. I use update time on edit plugin, and it tends to get in there before I hit my template shortcut. I’ve also been trying to apply templates to existing notes, so I’ll check out this script. Thanks @Pch!