const mixinafBedSheetMoustache::MoustacheTemplates

afBedSheetMoustache::MoustacheTemplates

A cache of Mustache templates.

renderFromFile

Source

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

Source

abstract Str renderFromStr(Str template, Obj? context := null, Str:Mustache partials := ([Str:Mustache])[:], Obj?[] callStack := [,], Str indentStr := "")

Renders a Moustache template.