A template is a note you reuse as a starting point: a meeting structure, a daily layout, a checklist. Myne keeps templates simple and local: a template is just a note you have marked, and a small, fixed set of placeholders fill in things like today’s date. This article covers making templates, managing them, and the placeholders.
What a template is
A template is an ordinary note with a template: true marker in its frontmatter. There is nothing special about its storage; it is encrypted like any other note. Myne ships no built-in templates; you start with none and make the ones you want.
Notes in the Trash and notes marked as templates are hidden from the sidebar and never appear in search results.
Creating and using a template
Making a note from a template is a deliberate, two-step path (distinct from the plain “new note”, which is always an instant blank):
- Choose New note from template and pick the template you want.
- Give the new note a name. Myne copies the template’s body into a fresh note, fills in any placeholders, and opens it.
You manage templates from the Manage templates surface, which has four actions:
- New: create a fresh template and open it to edit.
- Edit: open an existing template to change it.
- Remove from templates: turn a template back into an ordinary note. Non-destructive; the note and its content stay, it just stops being a template.
- Delete: send the template to the Trash like any note (recoverable from there).
“Remove from templates” and “Delete” are deliberately different: one demotes, the other deletes.
Placeholders
When a note is created from a template, Myne fills in these five placeholders, and only these five:
| Placeholder | Becomes |
|---|---|
{{title}} | the new note’s title (used verbatim; may be empty) |
{{date}} | today’s date, as YYYY-MM-DD, in your local time |
{{time}} | the current time, as HH:mm, 24-hour, local |
{{datetime}} | the local date and time combined |
{{weekday}} | the day’s name, in the app’s language |
A few rules keep this predictable:
- The list is closed. These five are the only placeholders. This is deliberate: there is no plugin system and no scripting; a template can only ever fill in this fixed set, never run code.
- Anything else passes through unchanged. An unknown name, a format-style
{{title:foo}}, or an unbalanced run of braces is copied through exactly as written. That passthrough is also how you escape: to get a literal{{date}}in your output, you would write a name that isn’t a placeholder. - Placeholders are matched once, left to right, and names are case-sensitive;
{{Date}}is not a placeholder. - Only inside templates. In an ordinary note,
{{date}}is just literal text; placeholders fill in only when a note is created from a template.
Limits
Placeholders fill in once, at creation; they are not live and do not update afterward. The set is fixed by design; if you need richer structure, build it into the template body as plain markdown.