# `Alternera.Resource.DomainExtension`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/domain_extension.ex#L1)

Lists each resource's version resource in a package's domain, so that
`ash.codegen` writes the versions tables and Ash finds the versions.

AshPaperTrail's own `include_versions? true` does the same, but it reads
each resource's extensions to do so, which makes the domain's compile wait
for its resources while each resource's compile reads the package id from
the domain. The version module's name is known without compiling the
resource (`<resource>.Version`, AshPaperTrail's), so this extension adds it
by name.

It also adds the `alternera_ui` section: the package's own pages and
Workbench items (`Alternera.Resource.UI`), which belong to the
package rather than to one resource.

    alternera_ui do
      page :overview, "Finance overview", MyUI.Overview, description: "…"
      workbench_item :converter, "Unit converter", MyUI.Converter, description: "…"
    end

# `alternera_ui`
*macro* 

---

*Consult [api-reference.md](api-reference.md) for complete listing*
