sawhney17 / logseq-smartblocks

MIT License
171 stars 12 forks source link

Dynamic variables for time and current page do not seem to render #39

Open scfcode opened 1 year ago

scfcode commented 1 year ago

Using Logseq 0.8.4 Using Smartblocks 3.4.5

I have a template in [[Templates]] with

- meeting notes  
    - **Topic:**  
    - **Participants:**  
    - **Discussion:**  
    - TODO todo  
        - <% today %>  
            - <% yesterday %>  
                - <% time %>  
                    - <% current page %>  
                        - <% last Friday %>  

I then setup a Smartblock as in

{{renderer :smartblock, meeting notes, Notes, false}}

Either in a Journal page or another page, if I click the "Notes" button, the dynamic variables for time, and current page are not rendered correctly. As in I get

- **Topic:**  
- **Participants:**  
- **Discussion:**  
- TODO todo  
    - Sep 3rd, 2022  
        - Sep 2nd, 2022  
            - <% time %>  
                - <% current page %>  
                    - Sep 2nd, 2022  
                        -  

If I call the template directly I get the correct values for the dynamic variables

- meeting notes  
    - **Topic:**  
    - **Participants:**  
    - **Discussion:**  
    - TODO todo  
        - Sep 3rd, 2022  
            - Sep 2nd, 2022  
                - 17:20  
                    - Sep 3rd, 2022  
                        - Aug 26th, 2022  
                        -  
oriofdarkforest commented 1 year ago

month doesn't render either