diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-04-08 09:03:50 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-04-08 09:03:50 +0000 |
commit | 924fc1add2de3edac4ad4b1097a3bbbb73d0ad50 (patch) | |
tree | e5c9689e1ff60953502faf55eacb8a82c2726b8a /jt.md | |
parent | 518e7dc2d5f97387702af0a300cc2842bd0deec6 (diff) | |
parent | 0b0cc421e79bff9f8692e8c771c5e72ee4414032 (diff) | |
download | jt2-924fc1add2de3edac4ad4b1097a3bbbb73d0ad50.tar.gz |
Merge branch 'tera' into 'main'
feat! add support for tera templates for new journal entries
Closes #8 and #10
See merge request larswirzenius/jt!11
Diffstat (limited to 'jt.md')
-rw-r--r-- | jt.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -155,6 +155,7 @@ when I run jt2 --editor=none --dirname=jrnl new "Abracadabra" then command is successful and there is one draft in jrnl and draft 0 in jrnl contains "Abracadabra" +and draft 0 in jrnl contains "!meta date=" given an executable script append.sh when I run jt2 --editor=./append.sh --dirname=jrnl edit 0 @@ -224,6 +225,28 @@ then there are no drafts in jrnl +## Override template for new journal entries + +Verify that we can have a custom template for new journal entries. + +~~~scenario +given an installed jt + +when I run jt2 --dirname jrnl init default "My test journal" +then command is successful + +given file jrnl/.config/templates/new_entry from new_entry_template + +when I run jt2 --editor=none --dirname=jrnl new "Abracadabra" +then command is successful +and there is one draft in jrnl +and draft 0 in jrnl contains "custom new entry template" +~~~ + +~~~{#new_entry_template .file .numberLines} +This is a custom new entry template. +~~~ + # Colophon This document is meant to be processed with the [Subplot][] program to |