From template to document
How your work in a catalog becomes a numbered release, and which release Epistola uses when an application asks for a document.
User guide navigation
On this page
This page explains the path from a change in the editor to a document that an application receives. Read it before you publish for the first time.
The catalog is the unit you publish
Every template lives in a catalog, together with its themes, stencils, images and other resources. In Epistola 2.0 a template has no versions of its own. The catalog has them. These versions are called releases.
1. You work in the Next release
Everything you change goes into the catalog’s Next release. The bar at the top of each page shows where you work, for example Acme / Letters / Next release. The editor saves your work there by itself.
The bar also says what you have not published yet, for example 1 change not published. When nothing is waiting, it says Everything is published.
Saving is not publishing. Applications do not see your changes yet. You can check them with Preview, which shows your unpublished work with a preview watermark.
2. You publish a release
When the work is ready, a publisher chooses Publish… in the bar. The dialog lists every change in the catalog and proposes a number. Epistola picks the number from the kind of change:
| Change | Number goes from | Example |
|---|---|---|
| A correction, such as a text fix | last digit | v1.3.0 → v1.3.1 |
| An addition, such as a new template | middle digit | v1.3.0 → v1.4.0 |
| A breaking change, such as a variant removed or a stricter contract | first digit | v1.3.0 → v2.0.0 |
A release never changes. It keeps its own copy of everything it holds: templates, data contracts, themes, stencils, fonts and images. If you edit or delete a resource later, the release still renders as it did. After publishing, your work continues in the Next release.
How to do this step by step is in Publish a template.
3. Generation picks a release
Epistola generates a document from a release, not from your unpublished work. The only exception is a test environment that follows your work (see below). Epistola chooses the release when it accepts the request. If you publish while the request waits in the queue, the document still uses the release chosen at the start.
The application can say which release it wants:
| The request names | Epistola uses |
|---|---|
| no version | the highest release (the highest version number) |
an exact version, such as 1.4.2 |
that release |
a range, such as ^1.4.0 |
the highest release that fits the range |
A generated document records the version and release it was rendered from.
So an application only gets a real document after you publish. A catalog without a release produces no documents, except previews on a test environment that follows your work.
Optional: environments decide what is served
An application can also name an environment, such as Test or Production. Then Epistola only uses the releases that you deployed to that environment. This gives you control over when a new release reaches an application.
- An environment can serve several releases of a catalog side by side. A request without a version gets the highest one there, unless the environment follows unpublished work.
- To roll back, you undeploy the newer release. The environment then serves the previous one again.
- A test environment can follow unpublished work: open the menu on Next release in the bar and choose Try it on an environment…. The environment then uses your work as you save it, and its documents carry the preview watermark.
- An environment marked Production serves only releases. It cannot follow unpublished work.
- An environment that serves nothing refuses document requests.
Which environments exist, and which ones your applications use, is agreed with the tenant administrator and the owner of the connected system. How to deploy and undeploy is in Publish a template. The training course Releases in practice lets you practise it.
Related pages
- Understand releases: the release history, parallel work and deleting a release.
- Update a published template: make the next change, or fix a release while other work is not finished.
- Fix publishing problems: when Publish… is missing or blocked.
Documentation
Exercises
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 →