docs.rs failed to build handlebars-iron-0.5.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
handlebars-iron-0.29.0
handlebars-iron
Handlebars middleware for the Iron web framework.
Usage
Add HandlebarsEngine to your Iron middleware chain as an "after" middleware.
/// HandlebarsEngine will look up all files with "./examples/templates/**/*.hbs"
chain.link_after;
In your handler, set Template
to response. As required by
Handlebars-rust, your data should impl serialize::json::ToJson
.
/// render data with "index" template
/// that is "./examples/templates/index.hbs"
Since this is simple library, you may run this
example
with cargo run --example server
first, and documentation
then.
Since Rust and its ecosystem are still in early stage, this project might been broken for various reasons. I will try my best to keep this library compiles with latest Rust nightly before the 1.0 final release. If you find anything bad, pull requests and issue reporting are always welcomed.
License
MIT, of course.