# `Braces.Nunjucks.Phoenix.Engine`
[🔗](https://github.com/dbernheisel/braces/blob/v0.1.0/lib/braces/nunjucks/phoenix/engine.ex#L2)

A `Phoenix.Template` engine for Nunjucks files. Only defined when `phoenix_template` is
installed.

    # config/config.exs
    config :phoenix_template, :template_engines, njk: Braces.Nunjucks.Phoenix.Engine

It works as `Braces.Jinja.Phoenix.Engine` does, converting with `Braces.Nunjucks.convert/2`:
`emails/welcome.html.njk` becomes a `welcome/1` function, compiled with your module, so
a template that can't be converted fails the build at its line. Values are HTML-escaped in
HTML formats, and written as they are in others.

---

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