YuriTemplate (yuri_template v1.0.0) View Source
Delegates and convenience wrappers.
Link to this section Summary
Link to this section Functions
Specs
expand(String.t() | YuriTemplate.RFC6570.t(), Access.t()) :: {:ok, String.t()} | {:error, term()}
Parses (if necessary) and expands the template.
Parameters
template
: the template for the expansion.substitutes
: mapping names to values.
Specs
expand!(String.t() | YuriTemplate.RFC6570.t(), Access.t()) :: String.t()
Same as expand/2
, but raises exception on error.
Specs
parse(String.t()) :: {:ok, YuriTemplate.RFC6570.t()} | {:error, term()}