facet classafEfanXtra::EfanTemplate

sys::Obj
  afEfanXtra::EfanTemplate : sys::Facet

@FacetMeta { inherited=true }
@Serializable

Use on a component to explicitly set a template file. By default, efanXtra looks for an efan template with the same name as the component class.

uri

Source

const Uri? uri

Use to explicitly set the location of the efan template. The Uri may take several forms:

  • if fully qualified, the template is resolved, e.g. fan://acmePod/templates/Notice.efan
  • if relative, the template is assumed to be on the file system, e.g. etc/templates/Notice.efan
  • if absolute, the template is assumed to be a pod resource, e.g. /templates/Notice.efan