Behaviour: openflax.handler.
Typically this handler is swapped to from another handler. This handler doesn't care about the basic resource or document, and only uses the configuration settings given to it to generate a simple template.
| fill_out/2 | Replaces all ${tag}s in the given text
with values from the dictionary. |
| serve/1 | Serves a template to the user agent. |
| start/1 | Initializes the templating handler. |
| stop/1 | Shuts down the templating handler. |
fill_out(Text::string(), Conf::conf()) -> string()
Replaces all ${tag}s in the given text
with values from the dictionary. The returned list is not flat.
serve(Conf::conf()) -> {response(), conf()}
Serves a template to the user agent.
Initializes the templating handler.
Shuts down the templating handler.