docs.rs failed to build handlebars_switch-0.2.0
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_switch-0.7.0
Handlebars Switch Helper
This provides a Handlebars {{#switch}} helper to
the already incredible handlebars-rust
crate.
Links of interest:
Quick Start
You can easily add the {{#switch}} helper to a rust Handlebars object using
the Handlebars#register_helper method:
use Handlebars;
use SwitchHelper;
let mut handlebars = new;
handlebars.register_helper;
Example
Below is an example that renders a different page depending on the user's access level:
extern crate handlebars_switch;
extern crate handlebars;
extern crate serde_json;
use Handlebars;
use SwitchHelper;