summaryrefslogtreecommitdiff
path: root/jtlib/templates
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-03 12:41:21 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-03 13:08:17 +0300
commitd8b539a9f2a18369400444ada72dff4a83595bab (patch)
tree56d920df78424dd5ed486dd2bc5a240cfa0a39d0 /jtlib/templates
parent7cb2a4b266c1d140ebd3c9198ca5754acda576ae (diff)
downloadjt-d8b539a9f2a18369400444ada72dff4a83595bab.tar.gz
Use jinja2 for templates
Diffstat (limited to 'jtlib/templates')
-rw-r--r--jtlib/templates/new-note.j24
-rw-r--r--jtlib/templates/new-note.tmpl5
-rw-r--r--jtlib/templates/new_person.j2 (renamed from jtlib/templates/new_person.tmpl)2
-rw-r--r--jtlib/templates/new_topic.j2 (renamed from jtlib/templates/new_topic.tmpl)2
4 files changed, 6 insertions, 7 deletions
diff --git a/jtlib/templates/new-note.j2 b/jtlib/templates/new-note.j2
new file mode 100644
index 0000000..9e4c98d
--- /dev/null
+++ b/jtlib/templates/new-note.j2
@@ -0,0 +1,4 @@
+[[!meta title="{{ title }}"]]
+[[!tag ]]
+[[!meta date="{{ date }}"]]
+{{ topiclink }}
diff --git a/jtlib/templates/new-note.tmpl b/jtlib/templates/new-note.tmpl
deleted file mode 100644
index 0db1798..0000000
--- a/jtlib/templates/new-note.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-[[!meta title="%(title)s"]]
-[[!tag ]]
-[[!meta date="%(date)s"]]
-%(topiclink)s
-
diff --git a/jtlib/templates/new_person.tmpl b/jtlib/templates/new_person.j2
index 86d5162..483215b 100644
--- a/jtlib/templates/new_person.tmpl
+++ b/jtlib/templates/new_person.j2
@@ -1,3 +1,3 @@
-[[!meta title="%(name)s"]]
+[[!meta title="{{ name }}"]]
[[!inline archive=yes pages="link(.)"]]
diff --git a/jtlib/templates/new_topic.tmpl b/jtlib/templates/new_topic.j2
index 5321b7f..7aa0b15 100644
--- a/jtlib/templates/new_topic.tmpl
+++ b/jtlib/templates/new_topic.j2
@@ -1,3 +1,3 @@
-[[!meta title="%(title)s"]]
+[[!meta title="{{ title }}"]]
[[!inline pages="link(.)" archive=yes reverse=yes trail=yes]]