Natural HTML templates
Templates are valid HTML. Browsers render them as prototypes and designers open them directly.
Pure-Dart web SDK
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.
A Trellis template is valid HTML with tl:* attributes. Designers preview the file directly; the engine binds your data at render time.
<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>
<article>
<h2>Growing season</h2>
<p>Server-rendered Dart, start to finish.</p>
<a href="/posts?id=42">Read more</a>
</article>
<article>…</article>
Use just the engine, or the whole trellis — composable packages that share one version and grow together.
Templates are valid HTML. Browsers render them as prototypes and designers open them directly.
tl:fragment and renderFragment() map directly to HTMX partial responses.
HTML, Markdown, and SASS are Dart packages. No Node.js, no webpack.
dart compile exe produces one file with instant startup and tiny containers.
Content, layouts, navigation, feeds, and search build together with the same pure-Dart toolchain.
Install a complete design, configure it in YAML, and keep the theme on its own update path.
Proof, not promise — the same posts.html is a clickable prototype on your desk and a live page in production.
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
The server response — same file, rendered with data
https:// localhost:8080/posts
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.
Write content once, then build themed HTML with navigation, search, feeds, and deploy-ready links.
---
title: Getting Started
weight: 10
---
# Getting Started
Write Markdown, pick a theme, run one build.
Write Markdown, pick a theme, run one build.
Pick a design, set one line of configuration, and publish. Browse every installed design from Themes.
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