# `Beancount.Directives.Include`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/directives/include.ex#L1)

The `include` directive pulls another ledger file into the current one.

See [Includes](https://beancount.github.io/docs/beancount_language_syntax/#includes).

## Beancount syntax

    include "accounts/checking.bean"

General form: `include "Path"`

This directive has no date. Place it at the top of a directive list, before
dated entries, to mirror real Beancount file layout.

## Elixir struct

    %Beancount.Directives.Include{
      path: "accounts/checking.bean"
    }

Or use `Beancount.include/1`:

    Beancount.include("accounts/checking.bean")

## Fields

  * `path` - relative or absolute path to another `.bean` file. Rendered as a
    quoted string.

# `t`

```elixir
@type t() :: %Beancount.Directives.Include{path: String.t()}
```

---

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