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
Updated to a FR, 8 June 2024:
Decluttering card is really a great project. I recently discovered it and I love it 😊
I noticed that we can pass both object and strings as variables. Directly assign object variables (e.g list) to a key in the card works. I'm stuck passing object variables and use them in templates.
I either get a string that contains [[undefined]], [[variable name]] or the default value 'xxx' declared as a string.
@droans ah thanks, now I understand what happens. I already found out to pass them as a string, but this was just a simplified example without sub-keys.
I will change this question into a FR to pass objects in JSON format when the variables are used inside templates.
Thanks!
erkr
changed the title
Question: can I use list variables in template?!
[FR]: Pass object variables in JSON format when used in templates
Jun 8, 2024
Hi code owners
Updated to a FR, 8 June 2024:
Decluttering card is really a great project. I recently discovered it and I love it 😊
I noticed that we can pass both object and strings as variables. Directly assign object variables (e.g list) to a key in the card works. I'm stuck passing object variables and use them in templates.
I either get a string that contains [[undefined]], [[variable name]] or the default value 'xxx' declared as a string.
I tried this markdown card template:
With this card:
That doesn't work. There seems no way to pass the object variables into a template
FR: Please pass object variables as a json string when applied inside a template. A special marker like this would be fine:
Thanks in advance
Eric
The text was updated successfully, but these errors were encountered: