Things I have tried
Hello, and thanks for what has been up until this past week a great tool for Obsidian! I’ve been using it for about a month now and everything I’ve done with Obsidian and Templator has been fine. Lot’s of good examples, including Obsidian-Scraper by @Basilios which I was able to modify to suit my needs, and it was all were working great up until about a week ago.
I’ve tried multiple clean installs of Obsidian and Templator, and no matter what, I get the same error. I think it all started with the 1.0 upgrade.
I’ve upgraded to 1.0.3 and I have the latest version of Templater, but like I said, this started with 1.0. I’ve been working on debugging this, non-stop for the past week, searching issues, forums, etc. No luck, which I find really strange :-o!
I’m not a stack programmer, but I’m okay tweaking JS a little bit, as long as I can back it out if I need to.
For testing purposes I started with the first example given on the Templater Introduction page, and I took out the daily quote, because I read a post where there was problems with that. But even just that bit of code fails.
I did have some success removing the front-matter, but after I tried to add it back, the error comes back, and then (and THIS IS REALLY WEIRD!), even if I remove it again, exit and come back in, I get the same error without the front-matter! It’s like something gets corrupted and it can’t be repaired.
What I’m trying to do
What I’m trying to do is just create a new file with a template. For example just creating the daily note, with the above mentioned test template:
---
creation date: <% tp.file.creation_date() %>
modification date: <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>
---
<< [[<% tp.date.now("YYYY-MM-DD", -1) %>]] | [[<% tp.date.now("YYYY-MM-DD", 1) %>]] >>
# <% tp.file.title %>
fails with the same error:
Templater Error: Template parsing error, aborting. ***
*** “” is not a function
I am about to give up at this point, so any help would be greatly appreciated!