# `LiveLoad.Reporter.HTML`
[🔗](https://github.com/probably-not/live-load/blob/v0.1.1/lib/live_load/reporter/html.ex#L1)

`LiveLoad.Reporter.HTML` provides a self-contained HTML report that embeds a set of `LiveLoad.Result` structs from a load test.

The HTML template is prebuilt as a single file and the JSON encoded data is stored in the page. Due to how `LiveLoad.Result` is
built and encoded, this may generate a very large file. The code that builds the template can be found in the `react-reporter`
directory in the LiveLoad repository.

The reporter returns an `t:binary/0` which can be served by a server, written to a file, transmitted somewhere else, etc.

# `render!`

```elixir
@spec render!(
  results :: %{required(LiveLoad.Scenario.t()) =&gt; LiveLoad.scenario_result()}
) :: binary()
```

Render an HTML report from the result of `LiveLoad.run/1`.

Returns a `t:binary/0` which can then be used to write to a file, served over a web server, etc.

