Glossary
Liquid template
A Liquid template is an HTML or text document that uses variables, filters, and simple logic to render personalized output from structured data.
A Liquid template is a reusable document source that mixes fixed copy with placeholders such as customer names, dates, totals, or product details. In a PDF workflow, the template is often written as HTML because HTML gives teams a familiar way to describe headings, tables, spacing, and brand styling. Liquid adds the data layer: variables insert values, filters format values, and conditional blocks hide or show sections when a row has different information.
The advantage is separation. Designers and operators can maintain one approved document structure while a CSV, API payload, or database record supplies the values for each generated file. A good Liquid template keeps variable names readable, avoids business logic that belongs upstream, and includes enough fallback copy to make missing data obvious during preview. It is especially useful when documents must be generated in batches but still look like individually prepared PDFs. Teams usually review templates alongside sample data so layout and field mapping problems appear before production output is created.
Questions, answered
- Is Liquid only for websites?
- No. Liquid can render HTML for websites, emails, and PDFs. In DocForge, it is used to place structured document data into reusable PDF layouts.