Sugar.Templates.Engine behaviour

Specification of the template engine API implemented by individual template engines.

Types

vars :: list | Keyword.t

Callbacks

compile/1

Specs:

Compiles a template.

It is advised that an engine implementation removes the template source from the struct if it is not needed after compilation but retain it if needed for rendering.

render/2

Specs:

Renders a compiled template based on the given template struct.