Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By Charly86
#29839 Hi there,
Since we have now a great Filesystem on SPI Flash that is able to send back static web pages, I'm wondering if there is any start or thinking to serve dynamic pages ? Page could be saved into file system and stored like this (purely example)
Code: Select all<td><%=EspVariableValue%><td>

or
Code: Select all<td><%=EspFunction()%><td>


This could bring us a good flexibility between static and dynamic pages.
User avatar
By ElGalloGringo
#32156 I have an example of doing this with jQuery in the HTML files and then implementing some of the URL endpoints in code.

Take a look at the WebGen/settings.html file at
https://github.com/jpswensen/ESP8266_WebGen
and the corresponding setup() in the AdvancedWebServerHuzzah_APandClient sketch.