const classafSlim::Slim
sys::Obj afSlim::Slim
Simple service methods for compiling and rendering slim templates into HTML. For further information on the ctx
parameter, see efan: Passing Data
- renderFromFile
Str renderFromFile(File slimFile, Obj? ctx := null, Type[] viewHelpers := Type[])Type#.emptyList()
Renders the given slim template file into HTML.
- renderFromStr
Str renderFromStr(Str slimTemplate, Obj? ctx := null, Type[] viewHelpers := Type[])Type#.emptyList()
Renders the given slim template into HTML.