# `Braces.Handlebars.HTML`
[🔗](https://github.com/dbernheisel/braces/blob/v0.1.0/lib/braces/handlebars/html.ex#L2)

Handlebars rendered as safe HTML for Phoenix: `Braces.HTML` for Handlebars, which also
takes an AST from `Braces.Handlebars.parse/2`. Only defined when `phoenix_live_view` is
installed.

    {Braces.Handlebars.HTML.render!(@template, @data)}

    <Braces.Handlebars.HTML.render template={@email.body} data={@recipient} />

# `render`

A function component that renders a Handlebars template in HEEx, as `Braces.HTML.render/1`.

## Attributes

* `template` (`:any`) (required) - A `Braces.Handlebars.Template` from `Braces.Handlebars.compile/2` or `~HBS`, an AST from
  `Braces.Handlebars.parse/2`, or Handlebars source, parsed on each render.

* `data` (`:any`) - The data, as `Braces.Handlebars.render/3` takes it. Defaults to `%{}`.
* `strict` (`:boolean`) - Makes a missing value an error. Defaults to `false`.
## Slots

* `error` - Rendered with the `Braces.Handlebars.ParseError` or `Braces.Handlebars.RenderError` when
  the template doesn't parse or can't be rendered. Without it, the error is raised.

# `render!`

Renders as `Braces.Handlebars.render!/3` does, as safe HTML: `{:safe, iodata}`.

---

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