• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
nbbaier

nbbaier

vt-ssg

Lightweight SSG: markdown + JSX layout → HTML string
Public
Like
vt-ssg
Home
Code
9
examples
3
README.md
defaults.tsx
frontmatter.ts
fs.ts
main.tsx
markdown.ts
test.tsx
types.ts
Connections
Environment variables
1
Branches
2
Pull requests
Remixes
History
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.
Sign up now
Code
/
examples
/
markdown-files
/
content
/
about.md
Code
/
examples
/
markdown-files
/
content
/
about.md
Search
…
about.md
title:
About

About This Example

This example demonstrates the file-based workflow for vt-ssg:

  1. Author your pages as .md files with YAML frontmatter
  2. Use readFile from std/utils to load them at build time
  3. Pass the markdown strings to renderToFiles() with a shared layout
  4. 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.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
AboutAlternativesPricingBlogNewsletterCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.