handles

Types

pub type HandlesError {
  LexError(error: lexer.LexError)
  ParseError(error: List(parser.ParseError))
  RuntimeError(error: engine.RuntimeError)
}

Constructors

  • LexError(error: lexer.LexError)
  • ParseError(error: List(parser.ParseError))
  • RuntimeError(error: engine.RuntimeError)
pub type Template {
  Template(ast: List(parser.AST))
}

Constructors

  • Template(ast: List(parser.AST))

Functions

pub fn prepare(
  template: String,
) -> Result(Template, HandlesError)
pub fn run(
  template: Template,
  ctx: Dynamic,
) -> Result(String, HandlesError)
Search Document