switch to handlebars

This commit is contained in:
zoe 2022-01-20 13:42:37 +01:00
parent 32e72eb2e2
commit 7391d4028f
7 changed files with 26 additions and 312 deletions

View file

@ -1,6 +1,7 @@
#[macro_use]
extern crate rocket;
use rocket_dyn_templates::Template;
use rocket::fs::{FileServer, relative};
#[macro_use]
extern crate lazy_static;
use clap::Parser;
@ -38,6 +39,7 @@ fn rocket() -> _ {
config.port = ARGS.port;
rocket::custom(config)
.attach(Template::fairing())
.mount("/static", FileServer::from(relative!("static")))
.mount("/", routes![index, cooking, frakes])
}