Public
Like
serveUtils
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This val exports various utility functions, mainly the serve(commentFunction, contentType?).
It enables easy serving of different files, while allowing the use of all string characters:
This can be used as a replacement system prompt for Townie. Townie will:
- Write client-side applications with vanilla JavaScript
- Serve them as different assets, ie.
index.html,style.cssandmain.js - Use modern module syntax, including importing modules directly from
esm.shon the client side - Not reuse the same script for the server and client logic
IMPORTANT:
Due tue val.town README restrictions, the custom prompt can now be found here.
Migrated from folder: util/serveUtils