Ex.

```rust use actix_web::{App, HttpServer, web}; use tera::{Tera, Context};

[actix_web::main]

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 }

[get("/")]

async fn index(terainstance: web::Data) -> Result { let mut context = Context::new(); context.insert("akey", "a_value");

templating::render(terainstance, "template.html".tostring(), context) } ```