|
This is gonna sound stupid. But I cannot for the life of me figure out how to add text to a Templater template. I just want to add a couple headers for my templates. I can't figure out how to do this because it seems like no one else does it for some reason. I can't find anything in the docs about it. Maybe this is not a feature. I know that I can just add text, but it messes with the current Templater code I have to add frontmatter, because that's using |
Answered by
Zachatoo
Jan 24, 2026
Replies: 1 comment 5 replies
|
Simply add the text to your template. For example, you could have a template file with the following contents: # Section
This is arbitrary text
<%*
// Maybe some Templater logic here? Whatever you want
-%> |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can wrap it in
tp.hooks.on_all_templates_executed, like thisOr, even simpler, just put the frontmatter in th…