-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do you pass a dict as a parameter to <%namespace:def #400
Comments
Jose has proposed a fix for this issue in the main branch: Update parsetree.py removed "?" from for x in re.compile(r"(${.+})" … https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5296 |
bug remains open as we have to revert this, see #401 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #396
Originally posted by jjgalvez May 5, 2024
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.The text was updated successfully, but these errors were encountered: