Skip to content
Orsnap
← All posts

How to Turn a Design Into a Reusable Template

The part most people skip: deciding what is fixed, what is a field, and what happens when a field overflows. A practical guide to templates that survive real data.

A reusable poster wireframe between blue and orange examples using the same layout
A template is a design plus a contract about which parts may change.

Every batch, form submission and API call in Orsnap has the same starting point: a design that has been turned into a template. The design part is familiar. The template part is a contract — this part is fixed, this part is a field, and here is what happens when the value does not fit. Most failed batches fail because the contract was never made explicit.

This guide is about making that contract once, properly, so the next fifty runs are boring.

Fixed furniture versus fields

Open the design and mark every element as one of two things:

  • Fixed — the logo, the margins, the rule under the headline, the footer, the page number position. These should look identical in every output.
  • A field — anything that comes from a spreadsheet, a form or an API payload.

The temptation is to make too much editable. A template where the designer can move the logo is a template where the logo will drift, and drift is exactly what a template exists to prevent. Start with the smallest set of fields that covers the real variation, and add one only when a second use case demands it.

A useful test: if a value could differ between two rows of the same campaign, it is probably a field. If it must be identical for the campaign to look like itself, it is fixed.

Name fields for the person filling them in

Field names are user interface. headline and body_copy are better than text_1 and text_2 because the person mapping a spreadsheet sees them in a dropdown next to their column names. A field called price makes the mapping obvious; a field called field_7 makes the mapping a guessing game that someone will get wrong at 6 p.m. on a Friday.

Two naming habits pay off:

  • Match the vocabulary of the source data. If the catalog calls it product_name, call the field product_name, not title.
  • Group related fields with a prefix — cover_headline, cover_image, point_1_title — so a multi-page template's fields sort in the order they appear.

Type each field, and mean it

Orsnap's variables are typed: text, image, color, and font asset. The type is not decoration. It is the check that a photo URL does not end up in a headline field, and it is what makes a batch fail on row 12 instead of producing a card with a broken image and a plausible-looking headline.

The types map to real decisions:

  • Text — a string. Length is the thing to plan for, not the type.
  • Image — a URL to an image file. The file is fetched and frozen when rows are checked, so a dead link fails early.
  • Color — a color value. Useful for brand variants or a per-row accent, dangerous if the source uses arbitrary color strings.
  • Font asset — a font uploaded to the workspace. This is a per-document choice more often than a per-row one; use it when the campaign genuinely varies typography.

Resist using a text field for a number you intend to do arithmetic on. The template evaluates fields once and substitutes them; it is not a spreadsheet formula engine. If a price needs tax added, do that in the source data.

Decide the overflow policy before the first batch

This is the decision that separates a template that works from a template that mostly works. Every text field eventually receives a value that does not fit. The template needs a policy:

  1. Wrap — the text flows to another line. Best for names, addresses and short paragraphs. Requires enough room in the layout for a second line.
  2. Scale down to a floor — the text shrinks until it fits or hits a minimum. Best for prices and short labels where the line must stay one line.
  3. Clip — the text is cut off. Rarely acceptable on a customer-facing document; occasionally acceptable on a badge whose content is known to be short.

Pick per field, and write the decision in the template notes. The person building the spreadsheet needs to know that the headline holds 40 characters before they write a 70-character headline.

The other half of the policy is the fallback. What does an empty field render? A blank line is usually wrong for a price or a status, because a blank looks like a bug. A sensible default — "Price on request", "For sale" — is better, and it is set in the template, not in the data.

Pages belong to the template

A document can hold up to 10 pages, and pages are part of the template, not the data. A five-page carousel template produces five pages for every row; a one-page flyer produces one. The batch does not decide how many pages a row gets, so if different rows need different lengths, that is two templates, not one clever one.

This is also why page-level fields need care. If page four exists only for some rows, either the deck always has four pages (with a blank or a closing page) or the deck is two templates. A page that sometimes renders empty is a page someone will forget to check.

Publish, then pin

Editing a template changes the draft. Publishing creates an immutable version. Batches and API calls can name a version, which is what keeps last month's campaign from changing when someone restyles the headline next week.

The working rhythm that avoids surprises:

  1. Edit the draft.
  2. Render one row with the draft revision, and look at it at the size it will be used.
  3. Publish, note the version number, and use that number in the batch or the API request.
  4. Keep editing the draft for next time; the published version stays as it was.

For a one-off batch, drafts are fine. For anything that will be called repeatedly — a form, an integration, a standing weekly batch — pin the version and treat a bump as a deliberate change.

The template is the product

The first two surfaces are covered in the batch guides for social images and multi-page decks.

A good template is reusable in three ways: a person can fill it in a form, a spreadsheet can drive it in a batch, and an application can call it through the render API. All three consume the same field definitions, which is why the time spent naming fields and choosing overflow policies is not overhead — it is the thing that makes the other three surfaces work.

Start from a starter design rather than a blank canvas if you can: the template library has 50 editable layouts, and adapting one is usually faster than building the fixed furniture from scratch. Then add the fields one at a time, rendering after each, until the template covers the real variation and nothing more.