Rollver daily todos is a really nice extension for Obsidian.md that takes TODOs from yesterdays daily notes and rolls them over to today's notes. It has support for Obsidians built-in templates, but does - to my understanding - not really work well with the Templater Plugin. At least, I was unable to get it to work :-). Also, I wished it had some way to tell me that TODOs have been rolled over a few times already. Doing it this way is my way of working around these limitations.
I took some of the code of that "rollover daily todos" plugin and made it into a templater user script.
- Copy
rollover_daily_todos.js
into your templater user scripts directory. - Include it in your daily notes template, like so:
# Tasks
<% await tp.user.rollover_daily_todos() %>
If your folder id different from "Tasks/Daily", you might need to call it like this:
# Tasks
<% await tp.user.rollover_daily_todos(folder="My/Daily/Notes/Folder") %>
I performed some basic troubleshooting and ascertained that my formatting must have been weird somehow. (I had C+P'ed your code, pasted it into a text file and renamed the extension to .js). After simply downloading the raw file of your above code it now causes no error.
Sorry for the confusion!