how do you pass a dict as a parameter to <%namespace:def #396
Unanswered
jjgalvez
asked this question in
Usage Questions
Replies: 1 comment 1 reply
-
the brackets probably can't be parsed in that context. either assign the dict ahead of time in a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do I pass a dict to a def when it's called from <%namespace:def>.
I would expect that calling
<%namespace:def param="${ {'id':123} }"></namespace:def>
to work, but when I do I get an error saying I am missing a closing}
for reference
<%call expr="namespace.def(param={'id':123})"></%call>
works as expected.Beta Was this translation helpful? Give feedback.
All reactions