You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering what is the best way of reusing helper functions. Here is my use case:
I have the following daily note template. Instead of having the code under done yesterday in my daily template, I would like to load it from a js file so that when I change the js file, all my existing daily notes are updated automatically. How can I make this work?
daily-template.md
---tags: dailyretro-topics:
type: daily_notecreation date: <% tp.file.creation_date() %> modification date: <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>---# daily updates### Today-[ ]### done yesterday```tasksdone <% tp.date.now("YYYY-MM-DD", -1) %>hide due date hide backlinkpath includes work
Additionally, I also would like to re-use this function so that it always gets the last weekday instead of current day - 1.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community
I was wondering what is the best way of reusing helper functions. Here is my use case:
daily-template.md
Additionally, I also would like to re-use this function so that it always gets the last weekday instead of current day - 1.
Beta Was this translation helpful? Give feedback.
All reactions