# `Mailglass.OptionalDeps.Mjml`
[🔗](https://github.com/szTheory/mailglass/blob/v1.2.0/lib/mailglass/optional_deps/mjml.ex#L1)

Gateway for the optional MJML NIF dependency (`{:mjml, "~> 5.3"}`).

`:mjml` is the Hex package name (a Rust NIF binding to the `mrml` crate).
The Elixir module it provides is `Mjml` — note the `:mjml` vs `:mrml`
distinction called out in `STACK.md`. Used by `Mailglass.TemplateEngine.MJML`
when adopters opt into MJML as an alternate rendering path (AUTHOR-05).

HEEx is the default `Mailglass.TemplateEngine` (D-18 project-level); MJML is
strictly opt-in. When `:mjml` is absent and an adopter configures the MJML
engine, `Mailglass.Config.validate_at_boot!/0` raises
`%Mailglass.ConfigError{type: :optional_dep_missing}`.

# `available?`
*since 0.1.0* 

```elixir
@spec available?() :: boolean()
```

Returns `true` when the `:mjml` NIF is loaded.

The NIF is loaded lazily on first `Mjml` module reference;
`Code.ensure_loaded?/1` forces the load and returns the resolved state.

---

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