const mixinafBedSheetMoustache::MoustacheTemplates
afBedSheetMoustache::MoustacheTemplates
A cache of Mustache
templates.
- renderFromFile
abstract Str renderFromFile(File templateFile, Obj? context := null, Str:Mustache partials := ([Str:Mustache])[:], Obj?[] callStack := [,], Str indentStr := "")
Renders a Moustache template. The template is cached for future use.
- renderFromStr
abstract Str renderFromStr(Str template, Obj? context := null, Str:Mustache partials := ([Str:Mustache])[:], Obj?[] callStack := [,], Str indentStr := "")
Renders a Moustache template.