const mixinafEfan::EfanTemplates

afEfan::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.

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