chaplin
Types
The error that can happen when compiling a template.
pub type CompileError {
FileNotFound
IncorrectSection(String)
InvalidDelimiters
UnclosedSection(String)
UnclosedTag
UnsupportedTag(String)
}
Constructors
-
FileNotFound -
IncorrectSection(String) -
InvalidDelimiters -
UnclosedSection(String) -
UnclosedTag -
UnsupportedTag(String)
Values
pub fn compile(tmpl: String) -> Result(Template, CompileError)
pub fn compile_file(
path: String,
) -> Result(Template, CompileError)
pub fn string_tree(of of: string_tree.StringTree) -> Argument