glemplate/text

Utilities for rendering plain text templates.

Functions

pub fn encode(str: String) -> StringBuilder

An encoder that just returns the content as-is.

pub fn render(
  template: Template,
  assigns: Dict(String, AssignData),
  template_cache: Dict(String, Template),
) -> Result(StringBuilder, RenderError)

Render a plain text template.

Search Document