gtemplate

Types

pub opaque type Template
pub opaque type Token
pub type Variable {
  String(String)
  List(List(Variable))
  Bool(Bool)
}

Constructors

  • String(String)
  • List(List(Variable))
  • Bool(Bool)

Values

pub fn create_template(str: String) -> Result(Template, String)
pub fn create_template_from_block(
  str: String,
  name: String,
) -> Result(Template, String)
pub fn create_template_from_file(
  file_name: String,
  name: String,
) -> Result(Template, String)
pub fn render_template(
  template: Template,
  variables: dict.Dict(String, Variable),
) -> Result(String, String)
Search Document