This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2020-10-13 23:40:03 +00:00
|
|
|
#![feature(proc_macro_hygiene, decl_macro)]
|
|
|
|
|
|
|
|
#[macro_use] extern crate rocket;
|
|
|
|
|
2020-10-14 00:01:25 +00:00
|
|
|
use rocket_contrib::templates::Template;
|
|
|
|
|
2020-10-13 23:40:03 +00:00
|
|
|
#[get("/")]
|
2020-10-14 00:01:25 +00:00
|
|
|
fn index() -> Template {
|
|
|
|
Template::render("index", &1)
|
2020-10-13 23:40:03 +00:00
|
|
|
}
|
|
|
|
|
2020-10-13 23:25:14 +00:00
|
|
|
fn main() {
|
2020-10-14 00:01:25 +00:00
|
|
|
rocket::ignite()
|
|
|
|
.attach(Template::fairing())
|
|
|
|
.mount("/", routes![index])
|
|
|
|
.launch();
|
2020-10-13 23:25:14 +00:00
|
|
|
}
|