vt-ssg
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.
| title: | About |
|---|
This example demonstrates the file-based workflow for vt-ssg:
- Author your pages as
.mdfiles with YAML frontmatter - Use
readFilefromstd/utilsto load them at build time - Pass the markdown strings to
renderToFiles()with a shared layout - The rendered HTML is written back into the val via the API
This keeps your content separate from your build logic and layout code, making it easy to add or edit pages without touching TypeScript.