SilentVoid13 / Templater

A template plugin for obsidian
https://silentvoid13.github.io/Templater
GNU Affero General Public License v3.0
3.22k stars 195 forks source link

Templater broken ? #1485

Open orossant opened 1 day ago

orossant commented 1 day ago

Plugin information (please complete the following information):

Describe the bug The right template is used but not rendered

Expected behavior The right template is used and rendered

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Zachatoo commented 1 day ago

Can you provide step by step instructions, and the template you're testing with? Templater appears to be working fine for me.

orossant commented 23 hours ago

Hi I appreciate your help. See below more details

I am using simple templater templates like this below (for meeting) I have configured templater folder location with the correct folder where templates are stored I have enable Trigger Templaters on new file creation I have enable Folder templates so that when i create a new note from folder Meetings, it normally will used the defined Template. I have also enabled Daily Note, to create daily note directly from double click on the day choosen in Calendar I have 2 pain points : 1/When I double click on today in my Calendar, it creates a New Daily Note with the correct Template Dayly Notes, but the note is created, it is without the rendered version of the template.

2/When I am in the folder view, i select Meeting folder and right click to create a new note : it creates an empty note instead of using Meeting note Templates

See below the two templates used for daily note and meeting.

Any idea to solve these odd things ? thanks a lot

Template Daily Notes

creation date: <% tp.file.creation_date() %> meditation: 1 weight: 95 pomodoros: 1 mood: 5 exercice: 1 reading: 1 summary: it's always day 1

Template Daily Notes

Daily Notes - <% tp.date.now("YYYY-MM-DD")

%>

<% tp.web.daily_quote() %>

Start of Day

Things to do

Template meeting

date: <% tp.date.now("YYYY-MM-DD") %> type: meeting company: entity: summary:

[[<% tp.file.title %>]]

Attendees

Goal/Agenda

1. 2.

Discussion notes

Action items

orossant commented 23 hours ago

I have done any update configuration before updating obsidian to latest version. It seems something is broken

tgruben commented 18 hours ago

my template is very similar and i am receiving this error after the update as well.

plugin:calendar:206 Failed to read the daily note template 'templates/daily' TypeError: Cannot read properties of null (reading 'path')
    at t.<anonymous> (app.js:1:733763)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at t.read (app.js:1:733644)
    at t.<anonymous> (app.js:1:734006)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at t.cachedRead (app.js:1:733906)
    at getTemplateInfo (plugin:calendar:200:38)
    at createDailyNote (plugin:calendar:226:49)
    at createFile (plugin:calendar:1051:33)
    at HTMLButtonElement.eval (plugin:calendar:1033:23)

I can post my template as well if that helps