const classafEfan::Efan
sys::Obj afEfan::Efan
Convenience methods for compiling and rendering efan templates.
str := efan.render("Hello <%= ctx %>!", "Mum")  // --> "Hello Mum!"  
- compile
- EfanMeta compile(Str efanTemplate, Type? ctxType := null, Type[]? viewHelpers := null, Uri? templateLoc := null)- Compiles the given efan template to a re-usable meta object. - The compiled template (not the returned Meta) extends the given view helper mixins. - templateLocmay be anything - used for meta information only.
- render
- Str render(Str efanTemplate, Obj? ctx := null, Type[]? viewHelpers := null, Uri? srcLocation := null)- Compiles and renders the given efan - Strtemplate.- str := efan.render("Hello <%= ctx %>!", "Mum")- // --> "Hello Mum!"- Convenience for: - str := efan.compile(...).render(ctx)