README.md

# datastar_wisp

[![Package Version](https://img.shields.io/hexpm/v/datastar_wisp)](https://hex.pm/packages/datastar_wisp)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/datastar_wisp/)

Wisp adaptor for <https://hexdocs.pm/datastar>

```sh
gleam add datastar_wisp@1
```

```gleam
let events = [
  datastar.merge_fragments("<span>Hello</span>")
  |> datastar.merge_fragments_selector("#notice")
  |> datastar.merge_fragments_end,
]

wisp.ok()
|> datastar_wisp.send(events)
```

This will add the events data to the Wisp response. And will also add the expected headers by Datastar.