Skip to content

ENفارسی

HORUPH

Write templates

A template turns a few values into a finished document. People with permission to manage templates write them; everyone who works on documents uses them.

Create a template

  1. Open Documents → Templates and choose New template.
  2. Enter a Name people will recognize, such as Sales proposal.
  3. Enter the Document title, such as Proposal for {{customer}}.
  4. Write the Body, one block per paragraph with an empty line between blocks:

    • a line starting with # is a heading;
    • a line starting with - is a bullet;
    • a line of --- is a divider;
    • any other text is a paragraph.
  5. Choose Create template.

Merge fields

Write {{name}} wherever a value goes, using letters, digits and underscores, such as {{customer}} or {{valid_until}}. Every merge field in the title and body is asked for when someone makes a document, and the template's window lists them under Merge fields. The values people enter are shown exactly as text: nothing they type becomes formatting.

Change a template

Open the template, change it and choose Save new version. Documents already made keep the version they were made from; new documents and Regenerate from template use the newest one.

Archive stops people from making new documents from the template, without changing the documents made from it. Restore brings it back.