Skip to content

Template zettels #328

@srid

Description

@srid

I imagine we don't need a very flexible template system.

Initial proposal, to be refined:

  • Templates can be added to a subdirectory, eg: ./templates/daily.md (see Revision 2 below)
  • Template vars are simple strings wrapped in __ (see below)
  • Have neuron new --template=daily use the specified template

Here's a sample template, ./template/daily.md:

---
date: __DATE__
tags:
  - journal
---

# __TITLE__

## Agenda today

- 

## Achieved today

Today I achieved, ...

We may even go one step ahead and support arbitrary key value pairs (neuron new --template=daily --data="key1=123"), with __KEY1__ somewhere in the template body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CerveauenhancementNew feature or requestproposalProposal with exact spec yet to be fleshed out

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions