Skip to content

Instantly share code, notes, and snippets.

View BiosElement's full-sized avatar

William Chambers BiosElement

View GitHub Profile
use std::sync::Arc;
use handlebars::Handlebars;
use serde_json::json;
pub async fn test(hb: Arc<Handlebars>) -> impl warp::Reply {
hb.render("template_test", &json!({"username": "Warp"})).unwrap()
}