jczic / MicroWebSrv2

The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
https://github.com/jczic/MicroWebSrv2
MIT License
662 stars 97 forks source link

tckt22: add 'include' instruction to pyhtml template #69

Open J4Chard opened 3 years ago

J4Chard commented 3 years ago

I switched to MicroWebSrv2 from Flask when I needed to develop an embedded web app. The inability to do 'include' felt like a major handicap to me -- I like to have the header menu in its own file and include it in every page, for example. The changes in this PR have been working well for me; presumably they'd be useful for some other users of MWS2.