Expand description

Handlebars templating handler for trillium based on the handlebars crate.

use trillium_handlebars::{HandlebarsHandler, HandlebarsConnExt};
let handler = (
    |mut conn: trillium::Conn| async move {
        conn.assign("name", "handlebars")

use trillium_testing::prelude::*;
assert_ok!(get("/").on(&handler), "hello handlebars!");


pub use handlebars;


A struct for accumulating key-value data for use in handlebars templates. The values can be any type that is serde serializable
The single entry point of your Handlebars templates
A trillium handler that provides registered templates to downsequence handlers


Extension trait that provides handlebar rendering capabilities to [trillium::Conn]s.