A behavior used to transform a resource (like a markdown file) into structured content.
Summary
Types
The config for a resource
The content belonging to an item (includes key)
The unique ID for an item belonging to a resource
Name of an existing resource
The raw content belonging to a resource
The raw metadata belonging to a resource
Callbacks
Defines a way to return the desired content from the resource.
Types
@type config() :: keyword()
The config for a resource
@type content() :: %{key: key()}
The content belonging to an item (includes key)
@type key() :: term()
The unique ID for an item belonging to a resource
@type name() :: atom()
Name of an existing resource
@type raw_content() :: binary()
The raw content belonging to a resource
@type raw_metadata() :: binary()
The raw metadata belonging to a resource