const classafEfan::EfanMeta
sys::Obj afEfan::EfanMeta
Meta data about an efan template.
Generated by the EfanCompiler.
- ctxName
const Str? ctxNameThe name of the
ctxvariable (if any) the template was compiled with.- ctxType
const Type? ctxTypeThe
ctxparameter type (if any) the template was compiled against.- instance
Obj instance(Obj[]? ctorParams := null)Returns an instance of
typeviatype.make().If
typeis const and noctorParamsare specified then the instance is cached and returned in later invocations.- render
Renders the efan template.
More specifically, this creates an instance of
type(viaType.make) and calls the efan render method with the givenctxargument.Convenience for:
renderFrom(instance, ctx)
- renderFrom
Str renderFrom(Obj instance, Obj? ctx)Calls the render method on the given template. Any errs thrown are wrapped in an
EfanErrthat shows where in the efan template the error occurred.- renderMethod
const Method renderMethodThe rendering method on
type.- templateLoc
const Uri templateLocWhere the template originated from. Example,
file://layout.efan.- templateSrc
const Str templateSrcThe original efan template source string.
- type
const Type typeThe
Typeof the compiled efan template.- typeSrc
const Str typeSrcThe generated fantom code of the efan template (for the inquisitive).