Sugar.Templates

Summary

compile(templates)

Compiles a single template or a list of templates

get_all_templates()

Gets all stored structs of compiled templates via a GenServer cast

get_template(key)

Gets a template from a stored map of structs of compiled templates

put_template(template)

Puts a template into a stored map of structs of compiled templates via a GenServer cast

render(template, assigns)

Functions

compile(templates)

Compiles a single template or a list of templates.

get_all_templates()

Gets all stored structs of compiled templates via a GenServer cast.

get_template(key)

Gets a template from a stored map of structs of compiled templates.

put_template(template)

Puts a template into a stored map of structs of compiled templates via a GenServer cast.

render(template, assigns)