Replies: 1 comment 1 reply
-
Maybe to complete the issue I should also add some more snippets:
Template is as simple as:
|
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
-
First of all KUDOS to Miguel for this awesome piece of art. I have it running on ESP8266 (frozen code) and ESP32 and it shines!
I manage to send file (I have my own template that substitutes patterns like {{contents}} found in file (code is below). I use stream with generating function that read the file, substitute the content and yields file line by line. And it works!
However, whatever I do to convince Microdot that is a plain/html the browser don't get and shows as plain/text. If I refresh page is rendered correctly. What am I doing wrong here?
Code snippet:
Beta Was this translation helpful? Give feedback.
All reactions