Serve Utils

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 is possible const arr = ["Hello", 'world', `!`];

Townie Prompt

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.css and main.js
  • Use modern module syntax, including importing modules directly from esm.sh on 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