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:
parent
b83dd99e30
commit
3db069c60d
5 changed files with 44 additions and 16 deletions
14
templates/index.html
Normal file
14
templates/index.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue