View Source jhn_mustache (jhn_stdlib v5.3.3)
Mustache template rendering.
The context is given either as a property list or a map with the keys being the tags as atoms. The partials are realised by recursively call rendering until no tags remain.
Summary
Functions
Renders a mustache template, the same as render(Template, Context, iolist).
Renders a mustache template. Option is: binary -> a binary is returned iolist -> an iolist is returned (default)
Types
-type context() :: jhn_plist:plist() | map().
-type option() :: binary | iolist.
-type template() :: binary().
Functions
Renders a mustache template, the same as render(Template, Context, iolist).
Renders a mustache template. Option is: binary -> a binary is returned iolist -> an iolist is returned (default)