# `Multitenancy.SiteResolver.YAML`
[🔗](https://github.com/marcosgz/multitenancy_phoenix/blob/v0.1.0/lib/multitenancy/site_resolver/yaml.ex#L1)

Resolves sites from a YAML file loaded once into `:persistent_term`.

    alpha:
      theme: alpha
      hosts: [alpha.example.com]
      locale: en
      settings:
        title: Alpha

Add it to your supervision tree so the file is loaded at boot:

    {Multitenancy.SiteResolver.YAML, path: Application.app_dir(:my_app, "priv/sites.yml")}

# `child_spec`

# `load!`

Parses `path` and replaces the loaded sites.

# `sites`

All loaded sites.

# `start_link`

---

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