Templates
Manage your templates
Your template library lives behind the ⋯ button in the Document area at the left of the app bar (its tooltip reads New and saved templates). From that one menu you start new documents, open saved templates, and get deleted ones back. Saving lives on the Save button beside it.

Before you start
Where templates are kept depends on how you run Weft:
- Hosted (signed in to a workspace): templates belong to the workspace. Everyone in it sees the same saved templates and the same recycle bin. Saving, deleting and restoring need the editor role or higher; a viewer can open and read templates. For a viewer, Save, the New section, the delete buttons and Restore are greyed out, with the tooltip You can view this document but not edit it.
- Local (no sign-in, single user): templates are kept in this browser's storage, on this device only, and nobody else sees them.
Start a new document
Open the ⋯ menu. The top section, New, offers:
- Blank template — "Start from an empty document." Weft then opens Start a new document, with three choices: Describe what you need (Buddy drafts a template), Start from your document (upload a PDF, DOCX or image) and Start blank. A blank document starts with no preview data, whatever the previous document was showing.
- Sales Quote, Invoice, Service Agreement, Expense Report, Boarding Pass, Newspaper Front Page and Certificate — finished starter documents, each opened with its own sample data. The list scrolls to show them all.
If the document you have open has unsaved changes, Weft asks first, and Discard throws them away. A starter document or a blank one you have not changed has nothing to lose, so Weft does not ask. A new document is not saved until you press Save.
Name it
The template's name sits in the field at the left of the app bar. Click it, type, and press Enter or click away to keep it. An empty name is not accepted — the field goes back to the old name.
A blank document starts as "Untitled" (then "Untitled 2", and so on); a starter document takes its own name, such as "Sales Quote".
If you type a name another saved template already uses, the field turns amber and, while you are editing, a note says so. Use unique changes your name to the next free form — "Invoice" becomes "Invoice 2". It is only a warning: you can keep the duplicate, and both templates are kept.
Save
Press Save, beside Undo and Redo, or press ⌘S (Ctrl+S on Windows). The first save creates the template; every later save stores a new numbered version of it, and the button's tooltip tells you which, such as Save as v4. Beside the name, Saved or Unsaved shows where you stand — Not saved on a new document you have not saved or changed yet, such as a starter document — and Saving… while a save is on its way; Save rests until it lands, and pressing ⌘S again meanwhile saves nothing twice. On a saved template with no changes since, the Save button is greyed out.
To duplicate a saved template, open the Save ▾ menu — the caret beside Save, whose tooltip reads Save options — and choose Save as a copy…. Enter a New template name (Weft suggests the current name plus "copy") and press Save copy. The original stays untouched, and from then on you are editing the copy. The copy starts with the preview data you were looking at, and Weft remembers the two templates' preview data separately (see "Open a saved template" below). In the hosted app, a copy starts without data sources: those stay with the original template.
The Save ▾ menu appears once the template has been saved. In the hosted app it also holds Publish — see Publish a template.
If the template was saved somewhere else after you opened it — by a teammate, or in another browser tab — your save is refused with a message telling you to reload before overwriting. To keep your edits, use Save as a copy…. To take the newer version instead, Load it again; your unsaved edits are discarded.
Open a saved template
Open the ⋯ menu. Under Saved templates, each row shows the name, the version number and when it was last saved; the one you have open is highlighted.
Press Load on the row. If you have unsaved changes, Weft asks before discarding them. A loaded template starts with a fresh undo history.
A template reopens with the data you last previewed it with — a sample, or data you pasted — so it looks the way you left it. Weft remembers that data in this browser, on this device; it is not saved with the template. So the template opens with no preview data when this browser has none for it: on another device or in another browser, for a teammate opening it for the first time, or after the browser's site data has been cleared. Its fields then show empty and the data pill (the button above the document that names the data you are previewing) reads No preview data. If the template has fields or lists to fill, one notice, No preview data yet, says so in the dock at the canvas's bottom left (in the Flow view) and in the check behind Preview PDF — in place of a warning on every field.
To give it data, open the data pill, press View / edit sample JSON, paste your data and press Apply. In the hosted app, a template with a data source can use real records instead: choose the source under Render source and press Use live data. Live records are never remembered, so a template you last previewed on live records opens with no preview data too — as does one Buddy built from your live records rather than from sample data. Data you apply with View / edit sample JSON while the canvas shows a live record replaces that record, so it is not remembered either; the editor says so. To have Weft remember it, press Back to sample data first, then apply your data.
Weft remembers preview data for up to 50 templates in this browser — the ones you used most recently — and does not remember pasted data larger than about 150 KB.
Delete a template
Two ways, both asking you to confirm with Delete:
- To delete the template you have open, choose Delete this template… in the ⋯ menu. It moves to the recycle bin and the canvas clears to a new blank document. Any unsaved changes are lost; restoring brings back the last saved version.
- To delete any saved template, press the ✕ on its row under Saved templates. If it is the one you have open, your document stays on the canvas but becomes unsaved again — the next Save creates a new template.
In the hosted app, the confirmation for a published template adds a line saying so: the Salesforce and HubSpot buttons and API renders that use it stop finding it until you restore it.
Restore from the recycle bin
When the bin holds anything, the ⋯ menu ends with a Recycle bin section listing each template with the date it was deleted.
- Press Restore on the row. The template returns to Saved templates.
- Press Load to open it. Restoring never replaces the document you have open.
In the hosted app, the bin is shared by the workspace, so any editor can restore a template a teammate deleted.
Good to know
- Renaming is an edit. Changing the name marks the document Unsaved, so save it (⌘S, or Ctrl+S on Windows) like any other change.
- While you review a change Buddy proposed, the new-document rows, Load, Save as a copy… and Delete this template… wait until you accept or discard it.
- A deleted template stops rendering elsewhere. A Salesforce button pointing at it fails, and the Weft panel in HubSpot stops offering it, until it is restored — see Add a Salesforce PDF button. This holds whether or not it was published.
- Components are separate. Saved components live in the Add block menu, not here, and have no recycle bin — see Reusable components.