# `Braces.Handlebars.Helpers.Options`
[🔗](https://github.com/dbernheisel/braces/blob/v0.1.0/lib/braces/handlebars/helpers/options.ex#L1)

The last argument of a custom helper (see `Braces.Handlebars.Helpers`), as Handlebars.js's
`options`:

  * `name`: the helper's name as the template writes it;
  * `hash`: the `key=value` arguments, with string keys;
  * `data`: the `@` variables, with string keys, such as `"root"` and `"index"`;
  * `this`: the context the helper is called in;
  * `fn` and `inverse`: for a block helper, functions that render the block and its
    `{{else}}` block with a context, giving text; `nil` in `{{helper}}`. Without `{{else}}`,
    `inverse` gives `""`. `Braces.Handlebars.Helpers.render_block/3` adds `@` variables and block
    params;
  * `block_params`: how many block params the block declares (`as |a b|` is 2);
  * `loc`: the tag's position in the template.

# `t`

```elixir
@type t() :: %Braces.Handlebars.Helpers.Options{
  block_params: non_neg_integer(),
  data: map(),
  fn: (term() -&gt; String.t()) | nil,
  hash: %{required(String.t()) =&gt; term()},
  inverse: (term() -&gt; String.t()) | nil,
  loc: map() | nil,
  name: String.t(),
  render: (atom(), term(), keyword() -&gt; String.t()),
  this: term()
}
```

---

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