Spanish Total.js
English
Documentation For AI agents
Contents

Templates

Create, group, clone and remove the templates of a profile.

.md GitHub
On this page

A template is the HTML of one kind of document, for example an invoice. It lives in a profile, and your apps call it by its ID: the profile identifier and the template identifier joined with a slash, for example demo/invoice.

Open Profiles and click a profile card to see its templates.

The templates of the Demo project profile, grouped under Billing

Each card shows the name, the template ID and how many times the template has been rendered. Templates without a group come first; the others are listed under their group name. Click the template ID on a card to copy it.

Create a template

1. Click Create.

2. Fill in the form:

The Create template form

FieldWhat it does
IdentifierRequired. The second part of the template ID, for example receipt in demo/receipt.
NameRequired. The name you see in the interface.
GroupOptional. Choose an existing group or type a new one. Choose Without group for none.

3. Click SUBMIT.

The new template starts with a short example. Click its card to edit it.

The template menu

Click the gear on the right of a card.

The menu of a template

  • Copy identifier: copy the template ID, for example demo/invoice.
  • Edit: change the identifier, name or group.
  • Update template: open the template editor. Clicking the card does the same.
  • Clone: create a copy named ... (CLONED) with an identifier that ends in _cloned. Its form opens so you can rename it.
  • Export: download the template as a JSON file. See Export and import.
  • Remove: remove the template, after you confirm.
Made in Europe