Templates
Save and reuse components
A component is a block, or a group of blocks, saved under a name so you can drop it into other templates: a letterhead, a signature block, a payment-terms paragraph. Build it once, and every template starts from the same piece instead of a hand-made near-copy.
A component is always inserted as a copy. Editing the inserted blocks never changes the saved component, and changing or deleting the component never touches documents it was already inserted into.
Before you start
In the hosted app (signed in to a workspace), saving and deleting components needs the editor role or higher. Where the library lives depends on how you run Weft:
- Hosted: the library belongs to your workspace. Everyone in the workspace sees the same components, on any device.
- Local (no sign-in, single user): the library is kept in this browser's storage, on this device only.
You save from the canvas in the Flow view, or from the Outline — the left-hand panel that lists every block as a tree.
Save one block

- Click the block on the canvas to select it. Saving a section, columns or grid saves everything inside it too.
- A small toolbar appears above the block. If it shows only a grip and one small button, press that button (its tooltip is Formatting options) to expand it. Then press Save at its end.
- In the Save to library dialog, fill in Component name. The field starts with the kind of block you selected, such as "section"; replace it with a name you will recognise later.
- Press Save to library, or press Enter.
The dialog closes and the component is in your library straight away. While you type, if another component already has that name, the dialog warns "A component with this name already exists — both will be kept." Names do not have to be unique; you simply end up with two entries.
A Repeat or Conditional usually draws only its contents, so selecting it may show no toolbar. Save it together with a neighbouring block (below), or save a section that holds it.
Save several blocks as one component
- In the outline, click the first block's row, then ⌘-click the others (Ctrl-click on Windows). They must share a parent — all directly in the document, or all directly inside the same section, column or grid cell. ⌘-clicking a block somewhere else starts a new selection.
- The properties panel opens for the selection. Under Save as component, press the button that names your selection, for example Save 3 blocks to library.
- Enter a Component name and press Save to library.
The blocks are saved in the order they appear in the document, whatever order you clicked them in, and they are inserted together, one after another.
Insert a component
- Open the Add block menu where you want the component to go — the + under the selected block, the + at the end of the document, the + on the dashed line that follows your pointer over the canvas, Add block at the top of the outline, or the + beside a column or grid cell in the outline.
- Scroll to My components, below the built-in blocks, or type part of the component's name in Search blocks…. Each entry is labelled Saved component.
- Click the component, or highlight it with the arrow keys and press Enter.
The blocks land at that spot, and the first one is selected. On a brand-new blank document the component replaces the empty placeholder paragraph rather than sitting below it. One Undo removes the whole insert, however many blocks it holds.
The My components group only appears once your library holds at least one component.
What happens to data bindings
A component keeps its field bindings exactly as they were when you saved it. Weft does not adjust them to the template you insert it into. A brand-new Table or Repeat from the built-in list points itself at the first list it finds (in the hosted app, a saved template's data source first); a component does not re-point anything.
So a component bound to an invoice's customer name works unchanged in any template whose data has that same field. Where the loaded data has no such field, the value prints empty, and Weft flags the block on the canvas and in the notices dock at the bottom left of the canvas, and lists it again in the check before export. Re-bind the field in the properties panel — see Bind fields, Fix flagged issues and Check before export.
Delete a component
- Open the Add block menu.
- Point at the component under My components, or highlight it with the arrow keys. A ✕ appears at the end of its row.
- Press the ✕. A confirmation names the component and reminds you that "Documents it was inserted into keep their copies."
- Press Delete.
Deleting a component is permanent. Components have no recycle bin, and in the hosted app the component disappears for everyone in the workspace.
Good to know
- There is no edit-in-place. To change a component, insert it, edit the copy, save that as a new component, then delete the old one.
- Hosted saves have a size limit. A component carrying large embedded pictures can be too big to save. Weft warns you before it tries: press Go back to return to the document, or Save anyway to try regardless.
- Viewers cannot use the library. For a Viewer, Add block — where the library lives — is greyed out, with the tooltip You can view this document but not edit it., so they cannot insert, save or delete components.
- Components are not templates. They do not appear in the template library under the ⋯ menu, and deleting a template never removes a component made from it.