Condiment v0.1.0 Condiment View Source

Add flavors to your context APIs easily!

No need to create different functions to cater to different use cases, instead you can have one single public function and add flavors conditionally, with Condiment.

Link to this section Summary

Link to this section Types

Specs

t() :: t(term())

Specs

t(_term)

Link to this section Functions

Link to this function

add(condiment, key, resolver)

View Source

Specs

add(t(), atom(), (any(), map() -> any())) :: t()
Link to this function

new(token, opts, condiment_opts \\ [])

View Source

Specs

new(any(), list(), list()) :: t()

Specs

run(t()) :: any()