Skip to content

Vefna v1.1.0 — Serve, watch, and drafts

Latest

Choose a tag to compare

@torvik-lang torvik-lang released this 22 Jul 19:55
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
629956e

Vefna v1.1.0 adds a built-in preview server, a watch mode, and draft pages — the things
you reach for while actually writing a site. It's built with Torvik v1.4.0 and uses
Torvik's new std::net for serving.

New

vefna serve [port] — build the site and host it at http://127.0.0.1:8000 (or a
port you choose), rebuilding automatically when a source file changes before the next
request. Binary assets stream intact.

vefna new myblog
cd myblog
vefna serve

vefna watch (and vefna build --watch) — rebuild continuously as sources change,
until you stop it.

Draft pages — a page with draft: true (also yes / 1) in its front matter is
skipped by default; pass --drafts to build, watch, or serve to include drafts. The
default build reports how many were skipped.

Install / upgrade

Re-run the installer to get the latest (it always fetches the newest release):

# Linux
curl -fsSL https://raw.githubusercontent.com/torvik-lang/vefna/main/linux/install.sh | sh
# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/torvik-lang/vefna/main/windows/install.ps1 | iex

Or grab a binary from the assets below and put it on your PATH.

Links