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
I realize that you are more knowledgeable than me, but there’s one thing I just can’t figure out. Why does the ESP8266 use {{KEY}}, while on your platform it uses %KEY%?
I have a small project on an ESP32 where I serve HTML pages from the filesystem to the client using:
The problem is that the styles are included in the same HTML file, and things like width:50% or similar CSS rules are being interpreted as %KEY%.
I know it’s possible to read the file on the server side, store it in a String, and replace only the necessary placeholders, but that feels like a hack.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I realize that you are more knowledgeable than me, but there’s one thing I just can’t figure out. Why does the ESP8266 use {{KEY}}, while on your platform it uses %KEY%?
I have a small project on an ESP32 where I serve HTML pages from the filesystem to the client using:
request->send(SPIFFS, "/index.html", "text/html", false, processor_index);
The problem is that the styles are included in the same HTML file, and things like width:50% or similar CSS rules are being interpreted as %KEY%.
I know it’s possible to read the file on the server side, store it in a String, and replace only the necessary placeholders, but that feels like a hack.
Thanks in advance for any advice!
Beta Was this translation helpful? Give feedback.
All reactions