# `StarView.Template.Patch`
[🔗](https://github.com/Neophen/star_view/blob/v0.7.0/lib/star_view/template/patch.ex#L1)

One element patch produced by `StarView.Template.diff/2`.

`selector` targets an element that exists in the previous render and
`elements` is its new outer HTML. Send it with `StarView.Elements.patch/3`:

    StarView.Elements.patch(conn, patch.elements, StarView.Template.Patch.opts(patch))

# `t`

```elixir
@type t() :: %StarView.Template.Patch{
  elements: String.t(),
  mode: :outer,
  namespace: :html | :svg | :mathml,
  selector: String.t()
}
```

# `opts`

```elixir
@spec opts(t()) :: keyword()
```

Returns `StarView.Elements.patch/3` options for the patch.
