Skip to content

Pure-Dart web SDK

Templates that are just HTML. A stack that's just Dart. Grow web apps in pure Dart. No Node required. Dart plus templates that are just HTML. Valid HTML in. Server-rendered Dart out. One language, one binary — the whole garden.

Trellis renders natural HTML templates — valid markup your browser opens as a prototype — and grows into a full SDK for server-rendered apps and static sites. HTMX-first fragments, no Node.js, and a single-binary deploy.

Open it in a browser. Then render it.

A Trellis template is valid HTML with tl:* attributes. Designers preview the file directly; the engine binds your data at render time.

posts.html valid html
<article tl:each="post : ${posts}">
  <h2 tl:text="${post.title}">Title</h2>
  <p tl:text="${post.summary}">Summary</p>
  <a tl:href="@{/posts(id=${post.id})}">
    Read more</a>
</article>
output rendered
<article>
  <h2>Growing season</h2>
  <p>Server-rendered Dart, start to finish.</p>
  <a href="/posts?id=42">Read more</a>
</article>
<article>…</article>

Why Trellis

Use just the engine, or the whole trellis — composable packages that share one version and grow together.

Natural HTML templates

Templates are valid HTML. Browsers render them as prototypes and designers open them directly.

HTMX-first fragments

tl:fragment and renderFragment() map directly to HTMX partial responses.

Pure-Dart toolchain

HTML, Markdown, and SASS are Dart packages. No Node.js, no webpack.

Single-binary deploy

dart compile exe produces one file with instant startup and tiny containers.

Static sites from Markdown

Content, layouts, navigation, feeds, and search build together with the same pure-Dart toolchain.

Themes without forks

Install a complete design, configure it in YAML, and keep the theme on its own update path.

One file, two views

Proof, not promise — the same posts.html is a clickable prototype on your desk and a live page in production.

one template — two views

posts.html — the template you write

<article tl:each="post : ${posts}">
  <h2 tl:text="${post.title}">Title</h2>
  <p tl:text="${post.summary}">Summary</p>
</article>

The browser view — opened straight from disk, no server

file:// templates/posts.html

Title

Summary

Read more

The same file, twice — open posts.html from disk and it is a working prototype; serve it and the tl:* attributes fill in real data.

Markdown in. A complete site out.

Write content once, then build themed HTML with navigation, search, feeds, and deploy-ready links.

content/docs/getting-started.md markdown
---
title: Getting Started
weight: 10
---

# Getting Started

Write Markdown, pick a theme, run one build.

Getting Started

Write Markdown, pick a theme, run one build.

Built-in themes, grown in the same garden

Pick a design, set one line of configuration, and publish. Browse every installed design from Themes.

Arbor documentation theme

Arbor

Documentation sites — sidebar navigation, in-page TOC, search, syntax highlighting.

theme: arbor
Lattice documentation theme

Lattice

Docs with a landing page — expressive home sections, complete docs navigation.

theme: lattice
Folio documentation theme

Folio

Field-guide docs — bookish typography, semantic figures, sidenotes.

theme: folio

One dependency away

Add the engine to any Dart project, or scaffold a full themed site with trellis_cli — planted in seconds.

dart pub add trellis
dart pub global activate trellis_cli