const classafEfan::Efan

sys::Obj
  afEfan::Efan

Non-caching service methods for compiling and rendering efan templates.

compileFromFile

Source

EfanRenderer compileFromFile(File efanFile, Type? ctxType := null, Type[]? viewHelpers := null)

Compiles a new renderer from the given efanFile.

The compiled renderer extends the given view helper mixins.

srcLocation may be anything - used for meta information only.

compileFromStr

Source

EfanRenderer compileFromStr(Str efanTemplate, Type? ctxType := null, Type[]? viewHelpers := null, Uri? srcLocation := null)

Compiles a new renderer from the given efanTemplate.

The compiled renderer extends the given view helper mixins.

srcLocation may be anything - used for meta information only.

renderFromFile

Source

Str renderFromFile(File efanFile, Obj? ctx := null, Type[]? viewHelpers := null)

Compiles and renders the given efan File template.

renderFromStr

Source

Str renderFromStr(Str efanTemplate, Obj? ctx := null, Type[]? viewHelpers := null, Uri? srcLocation := null)

Compiles and renders the given efan Str template.

srcLocation may be anything - used for meta information only.