const classafEfan::Efan
sys::Obj afEfan::Efan
Non-caching service methods for compiling and rendering efan templates.
- compileFromFile
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.
srcLocationmay be anything - used for meta information only.- compileFromStr
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.
srcLocationmay be anything - used for meta information only.- renderFromFile
Str renderFromFile(File efanFile, Obj? ctx := null, Type[]? viewHelpers := null)Compiles and renders the given efan
Filetemplate.- renderFromStr
Str renderFromStr(Str efanTemplate, Obj? ctx := null, Type[]? viewHelpers := null, Uri? srcLocation := null)Compiles and renders the given efan
Strtemplate.srcLocationmay be anything - used for meta information only.