aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template
diff options
context:
space:
mode:
Diffstat (limited to 'anki-card-template')
-rw-r--r--anki-card-template/template.m48
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>