Document Templates
Document Templates is one library for the documents you start from again and again (an engagement letter, a standard NDA, a memo) and for the playbooks Playbook Check uses. It lives in Settings → Document Templates. Each template is a plain Markdown file in Return’s data folder, so you can also open it in any editor or copy it to a colleague.
Templates never go to an AI model by themselves. A document you make from one is an ordinary document.
The library
Settings → Document Templates lists your templates in two groups, Documents and Playbooks, your own first.
- New template starts a document template or a playbook. A new playbook starts from a blank playbook with one example position.
- Edit opens a template: its name, a description, the format new documents are saved in, and the text. On the right you see the placeholders the text uses, or, for a playbook, what the format check says about the saved file.
- Duplicate makes a copy you can change.
- Delete moves a template to the trash.
- Edit in editor opens the template in an editor tab, once your changes here are saved, and Reveal in Finder (Show in File Explorer on Windows) shows the file itself.
To turn a document you already have into a template, open it and choose Save as Document Template: in the menu of the arrow next to Save in the top bar, in the File menu, or type /savetemplate in the command bar. A playbook stays a playbook. For a Word document, import it first, then save it as a template.
Built-in templates
Return comes with four starter playbooks: a services agreement and a mutual NDA, each in English and in Polish. They are marked Built-in and can’t be changed; Duplicate gives you your own copy to adapt. A starter is a starting point, not legal advice.
Starting a document from a template
- Click the arrow next to New in the top bar (or right-click the button) and choose the template. The new document goes to the folder of the file you have open.
- In the file tree, right-click a folder and choose New from Template, then the template. The new document goes to that folder.
- From the File menu choose New from Template…, or type
/templatein the command bar. The new document goes to the folder of the file you have open. This window also lists the playbooks, the starters among them; the menus keep to your document templates and New Playbook.
What happens next depends on the template:
- With placeholders, the Fill dialog opens on the template. Fill the values, check the file name and folder, and click Generate.
- Without placeholders, the template opens as a new, unsaved document. The first save offers the folder you chose. A template set to PDF or HTML opens the Fill dialog instead, which makes the file.
A new document never takes over the template’s own settings or identity: no template name, no id, no rules or decisions saved with the template.
PDF and HTML
A document template can produce a PDF or an HTML file instead of Markdown. Set it under New documents as in the template, or choose Save as in the Fill dialog each time. Return fills the placeholders, renders the result with the same renderer as File → Export, and saves the file. Tick Also keep the Markdown file if you want the editable version as well.
A series from a table
To make many documents at once, fill the placeholders from a CSV table, one new file per row.
- In the Fill dialog choose From a CSV file, then Choose a CSV file…. You can also right-click a
.csvfile in the file tree and choose Generate Documents from This Table…. - The first row of the table names the columns. A column named like a placeholder fills it:
Client nameorCLIENT_NAMEfills{{CLIENT_NAME}}. For the others, pick a column, or leave the placeholder as it is. - Each file needs its own name, so the file name contains a placeholder, for example
Letter - {{CLIENT_NAME}}.md. Below it Return lists the first file names. A name that is already taken gets-2,-3; a row whose name can’t be a file name is skipped. - Click Generate N files. Existing files are never overwritten. For PDF and HTML you can stop the series part-way; the files already made stay.
The table must be UTF-8. In Excel, save it as CSV UTF-8: an older CSV export garbles letters such as ą or ł, and Return asks you to save it again. Semicolons, commas and tabs between columns all work. A series can make at most 500 files; split a longer table.
An empty cell leaves its placeholder in the new file, the same as an empty field in the Fill dialog.
Playbooks in the library
The Playbook Check window lists the playbooks in your workspace folders first, then the ones in Document Templates, the starters among them. You approve a library playbook before its first use, like any other. Customize next to a starter makes your own copy and opens it in Settings. See Playbook Check.
Limits
- Templates are text: pictures in a template are not supported yet.
- Word (DOCX) output is not available yet; PDF and HTML are.
- The library lives on this computer. To share a template, reveal the file and send it.
- Values from a table are used as they are: a date is not reformatted.