mirror of https://github.com/rwf2/Rocket.git
Ignore render example due to broken upstream crate.
This commit is contained in:
parent
9069f91bea
commit
2b65be32e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue