# `PolyPost.Fetcher`
[🔗](https://git.sr.ht/~angelolakra/poly_post)

A module used for fetching content from Markdown files (resources)
from a file or git repository.

# `get`
*since 0.2.0* 

```elixir
@spec get(Resource.name()) ::
  {:ok, [PolyPost.Resource.Unit.t()]}
  | {:error, term()}
  | {:error, term(), term()}
```

Fetches raw content from git repository or path on disk listed under config.

# `get_from_path`
*since 0.2.0* 

```elixir
@spec get_from_path(Resource.name()) ::
  {:ok, [PolyPost.Resource.Unit.t()]}
  | {:error, term()}
  | {:error, term(), term()}
```

Fetches raw content from a path on disk listed under config only.

## Notes

If the resource is configured to originate from a git repository and
has already been pulled at some point in the past to the filesystem,
it will still attempt to retrieve the raw content for the resource
from the path without using git.

---

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