Initial Rocket commit
This commit is contained in:
1 parent
12f77ce9af
commit
0fbd04e791
4 files changed
+1907
-11
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
#[macro_use] extern crate rocket;
|
||||
use rocket_dyn_templates::{context, Template};
|
||||
|
||||
#[get("/")]
|
||||
fn index() -> Template {
|
||||
let context = context! {};
|
||||
Template::render("index", context)
|
||||
}
|
||||
|
||||
#[launch]
|
||||
fn rocket() -> _ {
|
||||
rocket::build().mount("/", routes![index])
|
||||
.attach(Template::fairing())
|
||||
}
|
||||
Reference in new issue
Block a user