-->
Page 1 of 1

Serving Dynamic Web Pages from SPI File System

PostPosted: Fri Sep 25, 2015 4:28 am
by Charly86
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.

Re: Serving Dynamic Web Pages from SPI File System

PostPosted: Fri Oct 23, 2015 7:23 pm
by ElGalloGringo
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.