about summary refs log tree commit diff
path: root/templates/index.html
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T15·30+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T15·30+0200
commit3db069c60d5696efc3d8772e07fec65d876b45e2 (patch)
tree31b6cb389d783104b185b5a0ab907e3e9decbad1 /templates/index.html
parentb83dd99e305f8de13211f14654b7bceb1c6024c1 (diff)
feat(main): Add support for Tera templates
Sets up the structure required to carry Tera templates in the
actix-web state.

The (still very barebones) index renderer has been updated to render a
Tera template.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000000..566715248a
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Converse Index page</title>
+  </head>
+  <body>
+    <h1>Welcome to Converse</h1>
+    <ul>
+      {% for thread in threads -%}
+        <li>{{ thread.title }} (posted at {{ thread.posted }})</li>
+      {%- endfor %}
+    </ul>
+  </body>
+</html>