Template Studio
The Template Studio is where you author and edit templates as HTML/CSS with Jinja, see a live preview, and render print-grade PDFs.
Authoring
Templates are HTML and CSS with Jinja placeholders for your data. A split view shows your markup on one side and a live preview on the other, so you see exactly how each change lands on the page before rendering.
Variables and logic
Bind fields with {{ employee.name }}-style placeholders, and use Jinja loops and conditionals for repeating rows or optional sections. The environment is sandboxed — templating expressions only, never arbitrary code — so a template is safe to share across a team.
Designing for paper
Because output is a PDF, author for paper: use the CSS @page rule to set sheet size and margins in physical units, and the fragmentation properties (break-inside, break-before) to control where pages split. DocForge renders with WeasyPrint, which supports real print CSS and embeds fonts for byte-stable output.
@page { size: A4; margin: 20mm 18mm; }
body { font-size: 11pt; line-height: 1.5; }Branding and watermarks
Logo, colours, and a default watermark are set once at the workspace level and inherited by every template. Override per template when a document needs something different.
Packs vs custom
Start from a built-in pack and tweak it, or author from scratch. Installed templates are yours to edit; updates to a pack never overwrite your changes.