docs.rs failed to build incrust-0.0.5
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:
incrust-0.2.15
Incrust
Incrust is a template engine written in Rust, inspired by Jinja2.
The implementation is at a very early stage.
Installation
Incrust is available on crates.io and can be included in your Cargo enabled project like this:
[dependencies]
incrust = "0.0"
Then include it in your code like this:
extern crate incrust;
Examples
All examples assume prepared instance of incrust. For ease of use hashmaps, we use the macro maplit
extern crate maplit;
extern crate incrust;
use Incrust;
Variables
let result = incrust.render_text.unwrap;
assert_eq!;
Filters
let result = incrust.render_text.unwrap;
assert_eq!;
Comments
let tpl = incrust.parse.unwrap;
let result = incrust.render_parsed.unwrap;
assert_eq!;
}
Escaping
let tpl = "Example: {% raw %}{{ mustaches }}{% endraw %}";
let result = incrust.render_text.unwrap;
assert_eq!;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.