Templates, variants, and releases
Understand what belongs together and choose the right place for a document change.
User guide navigation
On this page
The authoring model
A tenant is your organisation’s workspace. Inside it, a catalog groups the templates and everything they are built from. You publish a catalog as a whole, as a release with one version number. A template stands for a document type, such as a decision letter. Each template has:
- a data contract that describes its input
- one or more variants with the layouts
| You need to… | Use… | Example |
|---|---|---|
| Create a different document type | A new template | An invoice instead of a decision letter |
| Change the presentation of the same document | A variant | Dutch and English decision letters |
| Correct or improve an existing layout | A change in the catalog’s next release | Fix a sign-off or add a paragraph |
| Keep formatting consistent across templates | A theme | The organisation’s typography and margins |
| Reuse a piece of document content | A stencil | A standard signature or legal paragraph |
Variants share the template’s data contract. Do not create a second template just because the same letter needs another language. If you want to maintain the purpose or expected data on its own, create a separate template.
Find and create templates
Select the correct tenant and open the catalog, for example through All catalogs in the side nav. The side nav then shows the catalog’s own pages. Open Templates and use search to find your document. The list shows the catalog’s own templates first, then those of the catalogs it uses.
Open a template. You then see the tabs Variants, Data contract, Settings, and API. The API tab shows what an application should send to generate the document.
To create a template: on the catalog’s Templates page, choose New template, enter the name, and choose Create template. You can add a description for other authors. It is never rendered in the document.
Epistola fills in a Template ID from the name. Integrations use it. Once another system depends on it, do not change the ID any more. The readable name can change.
All steps and example data are in Create your first template.
Next release and releases
Templates, data contracts, and stencils have no versions of their own. The catalog’s release is the only version.
Everything you change goes into the catalog’s Next release. The editor saves your work there automatically. The bar at the top shows what is not published yet.
When you choose Publish… in the bar, Epistola turns the next release into a numbered release, such as v1.2.0. A release never changes. It holds everything in the catalog as it was, such as templates, data contracts, themes, stencils, images, fonts, attributes, and code lists.
To change a document, change the next release and publish again. The new release gets a higher number.
A change to the data and a change to the layout often go together. Because both are in the same next release, you publish them together.
Applications get documents from a release. Only a test environment can follow your unpublished work, with a preview watermark. From template to document explains which release they get.
Access and ownership
You can change a catalog unless it is read-only. Catalogs that Epistola supplies, such as the system catalog, are read-only. An administrator can also make a whole installation read-only, typically production. A badge says why a catalog is read-only.
Content Author and Content Publisher are separate roles. An author can change the next release and review it. A publisher publishes the release. The final checks and the publishing itself are in Publish a template.
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →