YuriTemplate (yuri_template v1.1.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
parameters(YuriTemplate.RFC6570.t()) :: [atom()] | [String.t()]
Specs
parse(String.t(), YuriTemplate.RFC6570.name_conv()) :: {:ok, YuriTemplate.RFC6570.t()} | {:error, term()}