1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::templates::Template;
/// Create a new jumbotron template.
pub fn new(heading: impl Into<String>, message: impl Into<String>) -> Template {
let mut template = Template::new("jumbotron");
template.fields = json!({
"heading": heading.into(),
"message": message.into()
});
return template;
}