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.
This commit is contained in:
Vincent Ambo 2018-04-08 17:30:03 +02:00
parent b83dd99e30
commit 3db069c60d
5 changed files with 44 additions and 16 deletions

14
templates/index.html Normal file
View file

@ -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>