aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template
diff options
context:
space:
mode:
Diffstat (limited to 'anki-card-template')
-rw-r--r--anki-card-template/back-template.html.m4 (renamed from anki-card-template/back-template.m4)2
-rw-r--r--anki-card-template/front-template.html.m4 (renamed from anki-card-template/front-template.m4)2
-rw-r--r--anki-card-template/makefile4
-rw-r--r--anki-card-template/template.html.m4 (renamed from anki-card-template/template.m4)5
4 files changed, 5 insertions, 8 deletions
diff --git a/anki-card-template/back-template.m4 b/anki-card-template/back-template.html.m4
index 79504dc..194c79b 100644
--- a/anki-card-template/back-template.m4
+++ b/anki-card-template/back-template.html.m4
@@ -1,2 +1,2 @@
define(`CARD_SIDE', `back')dnl
-include(`template.m4')dnl
+include(`template.html.m4')dnl
diff --git a/anki-card-template/front-template.m4 b/anki-card-template/front-template.html.m4
index dbfc810..384e112 100644
--- a/anki-card-template/front-template.m4
+++ b/anki-card-template/front-template.html.m4
@@ -1,3 +1,3 @@
define(`CARD_SIDE', `front')dnl
-include(`template.m4')dnl
+include(`template.html.m4')dnl
diff --git a/anki-card-template/makefile b/anki-card-template/makefile
index 013acb6..f567bab 100644
--- a/anki-card-template/makefile
+++ b/anki-card-template/makefile
@@ -5,8 +5,8 @@ all: back-template.html front-template.html
include ../common.mk
-back-template.html: card.min.js card.min.css template.m4
-front-template.html: card.min.js card.min.css template.m4
+back-template.html: card.min.js card.min.css template.html.m4
+front-template.html: card.min.js card.min.css template.html.m4
clean:
$(RM) back-template.html front-template.html card.min.js card.min.css
diff --git a/anki-card-template/template.m4 b/anki-card-template/template.html.m4
index 1b2a782..d3aba5d 100644
--- a/anki-card-template/template.m4
+++ b/anki-card-template/template.html.m4
@@ -1,7 +1,4 @@
-define(`EXEC',`translit(esyscmd($1),`
-')')dnl
-define(`TIMESTAMP',EXEC(`date'))dnl
-define(`VERSION',EXEC(`git describe --tags'))dnl
+include(`common.m4')dnl
<!-- lonkaars anki card template version VERSION()
generated at TIMESTAMP()
https://git.pipeframe.xyz/lonkaars/refold-tools -->