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
Since the variables are Py<PyAny>> they are treated as python variables at first, and only if they are further processed they get rust types.
It would be ideal to have the context considered to be each correct type directly so that when variables are resolved they are done without necessarily taking the python type route.
Yeah, I think we should definitely look into this at some point. I think I'd like to get more of the complicated {% tag %} implementations done first though.
Since the variables are
Py<PyAny>>
they are treated as python variables at first, and only if they are further processed they get rust types.It would be ideal to have the context considered to be each correct type directly so that when variables are resolved they are done without necessarily taking the python type route.
Looking into this >
django-rusty-templates/src/render/common.rs
Lines 17 to 60 in 1b8c71b
See this thread for more context.
Originally posted by @jonathan-s in #70 (comment)
As a side-effect of this current behaviour, the test cases in rust needs to be written rather awkwardly to cover other match arms.
The text was updated successfully, but these errors were encountered: