obsidian-raindrop-highlights-plugin icon indicating copy to clipboard operation
obsidian-raindrop-highlights-plugin copied to clipboard

Allow Templater Javascript Syntax in Frontmatter

Open dredhorse opened this issue 1 year ago • 2 comments

Hi,

I would like to use <%* code %> in the Frontmatter, but this doesn't work. Red Error Frame around the input box. Single line templater code e.g. <% tp.date.now('YYYY-MM-DD') %> does work.

dredhorse avatar Sep 27 '22 16:09 dredhorse

I'm not aware of the Templater integration while implementing the frontmatter template feature. To support this feature, YAML syntax checking needs revision (but I'm not sure whether it's possible to integrate with Templater).

kaiiiz avatar Oct 31 '22 14:10 kaiiiz

Templater in itself works.. it does have issues with the speed the notes are created though, to many notes after each other. The problem is I guess the <%* as the rest of the templater commands works. I configured Templater to run if a new note is created, as you add the templater code to the note due to your templating (see my other issues) templater will just run over it after the note is saved.

dredhorse avatar Nov 07 '22 16:11 dredhorse