```rust use actix_web::{App, HttpServer, web}; use tera::{Tera, Context};
async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() .appdata(web::Data::new(templating::makeinstance())) .service(index) }) .bind(("0.0.0.0", 3000))? .run() .await }
async fn index(terainstance: web::Data
templating::render(terainstance, "template.html".tostring(), context) } ```