Skip to content

Commit

Permalink
Ignore render example due to broken upstream crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Feb 2, 2017
1 parent 9069f91 commit 2b65be3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contrib/src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,13 @@ impl Template {
///
/// # Example
///
/// ```rust
/// ```rust,ignore
/// use std::collections::HashMap;
/// use rocket_contrib::Template;
///
/// // Create a `context`. Here, just an empty `HashMap`.
/// let mut context = HashMap::new();
///
/// # context.insert("test", "test");
/// let template = Template::render("index", &context);
/// # assert_eq!(template.to_string(), "");
/// ```
pub fn render<S, T>(name: S, context: &T) -> Template
where S: AsRef<str>, T: Serialize
Expand Down

0 comments on commit 2b65be3

Please sign in to comment.