Skip to content

Templates

A template gives new Objects a starting point. Save a Book with headings like “Main argument” and “Questions” as a template, make it the default, and every new Book opens with that outline ready to fill in.

A template can include property values and, when the Type has a body, body content. It doesn’t change the Type’s schema.

  1. Open the Object whose structure you want to reuse.
  2. Open the ⋯ menu and choose Save as template.
  3. Enter a Name and, optionally, a Description.
  4. Choose whether to Include body content.
  5. Select Save template.

The template is saved for the Object’s Type.

Open Object type settings → Templates. From there you can:

  • create a template with New Template;
  • Edit template to change its content in the Object editor, or open the draft as a full page;
  • Mark as default or Unset as default;
  • Delete template; and
  • Export template… or Import template….

A Type has at most one default template. Changing the default affects new Objects only; existing Objects and Objects already created from a template are unaffected.

Templates appear at the bottom of the sidebar’s New menu, marked as templates, and under New from template in a Type’s sidebar menu. Choosing one creates a new Object and opens it.

To apply a template to an Object that already exists, open its ⋯ menu and choose Use Template. Review the result, because the template’s values can replace what’s already there.

Export template… saves a self-contained template file that you can send to someone else. Import template… reads one back. Before importing, Lar shows a plan listing each Type, Mixin, or Facet the template needs and whether it Reuses existing or Creates it. Review the plan, then select Import.

Next: Formulas.