PolyPost.Builder (poly_post v0.3.0)

Copy Markdown View Source

A module used for building content from Markdown files (resources).

Summary

Functions

Builds content from a single resource unit.

Types

context()

@type context() :: term()

Functions

build_from_unit(resource_unit)

(since 0.2.0)
@spec build_from_unit(PolyPost.Resource.Unit.t()) ::
  {:ok, PolyPost.Resource.name(), PolyPost.Resource.content()}
  | {:error, term()}
  | {:error, term(), term()}

Builds content from a single resource unit.