const mixinafBedSheetEfan::EfanTemplates

afBedSheetEfan::EfanTemplates

Renders Embedded Fantom (efan) templates against a given context.

renderFromFile

Source

abstract Str renderFromFile(File efanFile, Obj? ctx := null)

Renders an .efan template file with the given ctx. The compiled .efan template is cached for re-use.

renderFromStr

Source

abstract Str renderFromStr(Str efan, Obj? ctx := null)

Renders the given template with the ctx.

Warning: Overuse of this method could cause a memory leak! A new Fantom Type is created on every call.

templateFromFile

Source

abstract EfanTemplate templateFromFile(File efanFile, Type? ctxType := null)

Returns (or compiles) a template for the given file.