Registry / web-framework / handlebars-iron

handlebars-iron

JSON →
library0.29.0rscratesunverified

Handlebars templating middleware for the Iron web framework.

# Cargo.toml [dependencies] handlebars-iron = "0.29.0"
INSTALL
IMPORT
SIG · HANDLEBARS-IRON
H
handlebars-iron
web-frameworkrustv0.29.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HandlebarsEngine
use handlebars_iron::HandlebarsEngine;

Set up Handlebars templating middleware in an Iron app.

use handlebars_iron::HandlebarsEngine; use iron::prelude::*; fn main() { let mut chain = Chain::new(|_: &mut Request| Ok(Response::with((status::Ok, "")))); chain.link_after(HandlebarsEngine::new()); Iron::new(chain).http("localhost:3000").unwrap(); }
Debug
Known issues
gotchaIron is no longer actively maintained; consider using Actix-web or Rocket.
fix
Migrate to a modern web framework like Actix-web with Handlebars.
affects: *
Upgrade
Version history
0.29.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
handlebars-iron — cargo add handlebars-iron · libregistry