mirror of
https://git.kittycat.homes/zoe/wisdom.git
synced 2024-08-15 03:26:36 +00:00
switch to handlebars
This commit is contained in:
parent
32e72eb2e2
commit
7391d4028f
7 changed files with 26 additions and 312 deletions
|
@ -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])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue