Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Templater Javascript Syntax in Frontmatter #19

Open
dredhorse opened this issue Sep 27, 2022 · 2 comments
Open

Allow Templater Javascript Syntax in Frontmatter #19

dredhorse opened this issue Sep 27, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@dredhorse
Copy link

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 dredhorse changed the title Allow Templater Javscript Syntax in Frontmatter Allow Templater Javascript Syntax in Frontmatter Sep 29, 2022
@kaiiiz kaiiiz added the enhancement New feature or request label Oct 31, 2022
@kaiiiz
Copy link
Owner

kaiiiz commented Oct 31, 2022

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).

@dredhorse
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants