Nice, are you planning on automatically putting them on library projects without icons?
It seems to me that games and apps don’t need a default icon because icons made from screenshots are better, but library projects often have nothing to show visually and it would be handy to have a default icon for them.
@UberGoober Yes, I expect so. I think I’d like to enforce user icons for app & game projects but libraries often don’t have anything worth using as an icon.
I’ve made various improvements in this version.
- The API is now far easier to use.
- WebSockets are now supported
- Server-side Lua embedded in HTML files are also supported
- Various improvements to overall functionality.
Basic usage to serve a static site from a folder in Codea’s documents folder is:
function setup()
WebServer(asset.documents.my_site)
end
This serves all content in the my_site
folder at port 80 (default for browsers).
WebServer.zip contains the slimmed-down Library project that provides full documentation when connected to from a browser!
WebServerDemo.zip contains a more comprehensive example of the supported features (as well as the documentation).
Also available on WebRepo!
Documentation is available here