Platem (platem v0.1.0)
This module provides a simple interface to the Platem. This module is also the main supervisor and it should be included in the main supervision tree.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Populates a template with the given values.
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
populate(template, values)
Populates a template with the given values.
Example
iex> Populator.populate(%Template{template: "{{name}}", fields: [%Field{name: "name", default: "default"}]}, clause: {"{{", "}}"}, [%Value{name: "name", value: "value"}])
%Template{template: "value", fields: [%Field{name: "name", default: "name"}]}