pub fn render_string(
template: &str,
ctx: &RenderContext,
) -> Result<String, TemplateRenderError>Expand description
Render a string template with variable substitution.
Supports:
- Simple variables:
{{var_name}} - Date math expressions:
{{today + 1d}},{{now - 2h}},{{today | %Y-%m-%d}} - Filters:
{{var_name | filter}}(currently supports: slugify)