I am able to make a html webpage but with the html code in my .rs file. How do I separate it giving a link to the file to be displayed to rocket.rs?
My code:
use rocket::*;
use rocket::response::content::RawHtml;
#[get("/")]
fn index() -> RawHtml<&'static str> {
RawHtml(r#"<h1>Hello world</h1>")
}
#[launch]
fn rocket()->_{
rocket::build().mount("/", routes![index])
}