aboutsummaryrefslogtreecommitdiff
path: root/template-vars.md
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-07 02:02:45 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-07 02:02:45 +0300
commite3a41da5a0a3d70ac53591f2b66144f2be2b3871 (patch)
tree789cc69b05f2447c11f04dbb6ae972ffa0acd1c9 /template-vars.md
downloadrevela-e3a41da5a0a3d70ac53591f2b66144f2be2b3871.tar.gz
revela-e3a41da5a0a3d70ac53591f2b66144f2be2b3871.zip
Initial commit.
Almost functional but still missing features and lacking testing.
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`