YuriTemplate.RFC6570 (yuri_template v1.1.0) View Source
This module contains RFC6570-specific functions.
Link to this section Summary
Types
Internal template representation. Subject to change at any time without prior notice.
Link to this section Types
Specs
name_conv() :: :binary | :atom | :existing_atom | [atom()]
Specs
t()
Internal template representation. Subject to change at any time without prior notice.
Link to this section Functions
Specs
Expands the template using given substitutes into an iodata/0
.
Specs
Return all variables from the template.
Specs
Parses the given string to the t/0
.
Second argument describes how to convert variable names.
:atom
- default, potentially unsafe. Names converted usingString.to_atom/1
.:binary
- no conversion, safe option.:existring_atom
or any list - more safe alternative to:atom
, names converted usingString.to_existing_atom/1
. You can use list of atoms instead of:existing_atom
to ensure that all atoms you need already exist.