const classafEfan::Efan
sys::Obj afEfan::Efan
Methods for compiling and rendering efan templates. Note these methods are non-caching.
- compileFromFile
EfanTemplate compileFromFile(File efanFile, Type? ctxType := null, Type[]? viewHelpers := null)Compiles a new template from the given efan
File.The compiled template extends the given view helper mixins.
- compileFromStr
EfanTemplate compileFromStr(Str efanTemplate, Type? ctxType := null, Type[]? viewHelpers := null, Uri? srcLocation := null)Compiles a new efan template from the given efan
Str.The compiled template 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.