diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-25 11:17:04 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-25 11:19:00 +0100 |
commit | 4b774cda6ce60c06b161d6d52c4a25a3a213a40f (patch) | |
tree | 6fa0060a3c203c31ea50cb5a23d5bba5fd8b81f9 | |
parent | cf90601c1bed9d3f30edc1406c842a4fdcafd117 (diff) |
add timestamp and version to rendered template
-rw-r--r-- | anki-card-template/template.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/anki-card-template/template.m4 b/anki-card-template/template.m4 index 85ed66f..c55ffa9 100644 --- a/anki-card-template/template.m4 +++ b/anki-card-template/template.m4 @@ -1,3 +1,11 @@ +define(`EXEC',`translit(esyscmd($1),` +')')dnl +define(`TIMESTAMP',EXEC(`date'))dnl +define(`VERSION',EXEC(`git describe --tags'))dnl +<!-- lonkaars anki card template version VERSION() + generated at TIMESTAMP() + https://git.pipeframe.xyz/lonkaars/refold-tools --> + <div id="card" class="CARD_SIDE() vertical-layout"> <div id="front"> <span id="sentence" class="parse parse-furigana parse-format foreign">{{Complete sentence}}</span> |