facet classafEfanXtra::TemplateLocation

  afEfanXtra::TemplateLocation : sys::Facet

@FacetMeta { inherited=true }

Place on component classes to explicitly use a named template file. By default, efanXtra looks for an efan template with the same name as the component class.



const Uri? url

Use to explicitly set the location of the efan template. The Url 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