# `Macaw.Template.Kit.Set`
[🔗](https://github.com/dcoai/macaw/blob/v0.6.0/lib/macaw/template/kit/set.ex#L1)

A check set for the template kit (spec/12 §2.1): an adopter's own rule over a stacked
template, run by `Macaw.Template.Kit.check/3` on every stack that passes.

    defmodule MyApp.SidebarLabeled do
      @behaviour Macaw.Template.Kit.Set

      @impl true
      def check(stacked) do
        for {name, %{role: :complementary, label: nil}} <- stacked.regions,
            do: {[stacked.template, :regions, name, :label], :label_required}
      end
    end

Each fault names its layer as `Macaw.Template.stack/3`'s do: its path starts with the
layer's name.

# `check`

```elixir
@callback check(Macaw.Template.Stacked.t()) :: [Macaw.Base.Fault.t()]
```

The faults of a stacked template by the set's rule, `[]` for none.

---

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