glemplate/text

Utilities for rendering plain text templates.

Functions

pub fn encode(str: String) -> StringTree

An encoder that just returns the content as-is.

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

Render a plain text template.

Search Document