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

View file

@ -1,6 +1,6 @@
use chrono::prelude::{DateTime, Utc};
#[derive(Queryable)]
#[derive(Queryable, Serialize)]
pub struct Thread {
pub id: i32,
pub title: String,