Public
text imports in val town, thanks to Deno 2.8
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.
Thanks to Deno 2.8, you can import text files in Val Town.
import data from "./data.json" with { type: "text" };
import html from "./index.html" with { type: "text" };
import styles from "./styles.css" with { type: "text" };
import markdown from "./newsletter.md" with { type: "text" };
This val contains a simple server that imports and serves an HTML and a CSS file.