aboutsummaryrefslogtreecommitdiff
path: root/template-vars.md
diff options
context:
space:
mode:
Diffstat (limited to 'template-vars.md')
-rw-r--r--template-vars.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/template-vars.md b/template-vars.md
new file mode 100644
index 0000000..2108b87
--- /dev/null
+++ b/template-vars.md
@@ -0,0 +1,37 @@
+# Variables
+
+A very rough and dirty representation of the variables in each template.
+
+## Common for all templates
+
+* `title`
+* `index`
+
+## index.html
+
+* `albums` (vector)
+* `years` (vector)
+ - `name`
+ - `albums` (vector)
+
+## album.html
+
+* `album`
+ - `title`
+ - `desc`
+ - `link`
+ - `date`
+ - `previews` (vector of thumbs)
+ - `thumbs` (vector)
+ - `link`
+ - `source`
+
+## image.html
+
+* `album`
+* `image`
+ - `exif` **TODO!**
+ - `date`
+ - `source`
+ - `prev`
+ - `next`