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} />
Summary
Functions
A function component that renders a Handlebars template in HEEx, as Braces.HTML.render/1.
Renders as Braces.Handlebars.render!/3 does, as safe HTML: {:safe, iodata}.
Functions
A function component that renders a Handlebars template in HEEx, as Braces.HTML.render/1.
Attributes
template(:any) (required) - ABraces.Handlebars.TemplatefromBraces.Handlebars.compile/2or~HBS, an AST fromBraces.Handlebars.parse/2, or Handlebars source, parsed on each render.data(:any) - The data, asBraces.Handlebars.render/3takes it. Defaults to%{}.strict(:boolean) - Makes a missing value an error. Defaults tofalse.
Slots
error- Rendered with theBraces.Handlebars.ParseErrororBraces.Handlebars.RenderErrorwhen the template doesn't parse or can't be rendered. Without it, the error is raised.
Renders as Braces.Handlebars.render!/3 does, as safe HTML: {:safe, iodata}.