gleam/bbmustache
Types
pub type CompileError {
FileNotFound
IncorrectSection(String)
InvalidDelimiters
UnclosedSection(String)
UnclosedTag
UnsupportedTag(String)
}
Constructors
-
FileNotFound -
IncorrectSection(String) -
InvalidDelimiters -
UnclosedSection(String) -
UnclosedTag -
UnsupportedTag(String)
Functions
pub fn compile_file(
path: String,
) -> Result(Template, CompileError)
pub fn render(
template: Template,
injecting args: List(#(String, Argument)),
) -> String