about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-05-22T16·35+0200
committerVincent Ambo <github@tazj.in>2018-05-22T18·44+0200
commitf5badb97d333ffbc2d294cbff3afda0bd4879b56 (patch)
tree8bb9d91964f45f6d8ce944b946746512f2adab91 /src/main.rs
parentd90dc2d77fd813257e24a45456cb6b10791999e6 (diff)
refactor(templates): Use Askama for index template
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 4db4ab5cc920..c68b75229f41 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,16 +17,19 @@
 // <http://www.gnu.org/licenses/>.
 
 #[macro_use]
+extern crate askama;
+
+#[macro_use]
 extern crate diesel;
 
 #[macro_use]
-extern crate log;
+extern crate failure;
 
 #[macro_use]
-extern crate serde_derive;
+extern crate log;
 
 #[macro_use]
-extern crate failure;
+extern crate serde_derive;
 
 extern crate actix;
 extern crate actix_web;
@@ -137,7 +140,6 @@ fn start_renderer() -> Addr<Syn, Renderer> {
     // location-dependent.
     // Drawback is that template changes require recompilation ...
     tera.add_raw_templates(vec![
-        ("index.html", include_str!("../templates/index.html")),
         ("post.html", include_str!("../templates/post.html")),
         ("search.html", include_str!("../templates/search.html")),
         ("thread.html", include_str!("../templates/thread.html")),