Unignore template test. Upstream fix landed.

This commit is contained in:
Sergio Benitez 2017-02-02 18:48:34 -08:00
parent 5abb8d99b4
commit 84abac7f2b
1 changed files with 4 additions and 2 deletions

View File

@ -133,14 +133,16 @@ impl Template {
///
/// # Example
///
/// ```rust,ignore
/// ```rust
/// 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
{