Function nanotemplate::template[][src]

pub fn template<'k, 'v, T: PlaceholderValuePair<'k, 'v>, I: IntoIterator<Item = T>>(
    template: &str,
    values: I
) -> Result<String, TemplateError>

Renders a string from the tempalte, replacing all instances of {placeholder} with given values.

Placeholder name may only contain letters, numbers, dash, underscore and a dot.