A nicely modularized webserver for the ESP8266. I tried to make this as pythonic as possible, because sometimes C++ just sucks.
To add a basic route, simply:
- Add a template (EG: templates/example_template.html).
- Write all inline HTML/JS (I know, it kind of still sucks).
- Run
parser.py
. - Add a function to
server->send()
your template inroutes.h
/routes.cpp
. - Modify the
route_list
in thestartServer()
function inside ofutils.cpp
to assign it a path.