Ignore render example due to broken upstream crate.

This commit is contained in:
Sergio Benitez 2017-02-02 15:39:30 -08:00
parent 9069f91bea
commit 2b65be32e0
1 changed files with 1 additions and 4 deletions

View File

@ -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