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

Source

Str renderFromFile(File slimFile, Obj? ctx := null, Type[] viewHelpers := Type[])Type#.emptyList()

Renders the given slim template file into HTML.

renderFromStr

Source

Str renderFromStr(Str slimTemplate, Obj? ctx := null, Type[] viewHelpers := Type[])Type#.emptyList()

Renders the given slim template into HTML.