YuriTemplate (yuri_template v1.1.0) View Source

Delegates and convenience wrappers.

Link to this section Summary

Link to this section Functions

Link to this function

expand(template_or_string, substitutes)

View Source

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.

Link to this function

expand!(template_or_string, substitutes)

View Source

Specs

Same as expand/2, but raises exception on error.

Specs

parameters(YuriTemplate.RFC6570.t()) :: [atom()] | [String.t()]

See YuriTemplate.RFC6570.parameters/1.

Link to this function

parse(str, name_conv \\ :atom)

View Source

Specs

parse(String.t(), YuriTemplate.RFC6570.name_conv()) ::
  {:ok, YuriTemplate.RFC6570.t()} | {:error, term()}

See YuriTemplate.RFC6570.parse/2.