logseq-smartblocks icon indicating copy to clipboard operation
logseq-smartblocks copied to clipboard

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

Open scfcode opened this issue 2 years ago • 1 comments

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  
						-  

scfcode avatar Sep 04 '22 00:09 scfcode

month doesn't render either

oriofdarkforest avatar Oct 13 '22 09:10 oriofdarkforest