microdot utemplate in asyncio #9623
Unanswered
Gingso
asked this question in
Libraries & Drivers
Replies: 1 comment 1 reply
-
issue can be closed, i had a typo in the template (special character which was overlooked) |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i tried to use utemplate with microdot on my esp32, with the latest OTA Firmware. But I'm not able to get it running :-/ (microdot itself is running for standard requests)
What i did so far:
implement the following code:
When I connect to the webserver it crashes:
what i figured out so far:
in templates an index_html.py file is generated
--> If i copy paste the included render function to my code and execute directly, everything works fine.
It looks like an issue with the loader / Load function in microdot_utemplate.py:
any ideas how to fix this?
I do not know how this loader construct work, but it seems to me that it has to be "render.render(*args, **kwargs)" to execute the render function in the .py file....
Beta Was this translation helpful? Give feedback.
All reactions