GgenIgniter.Render (ggen_igniter v26.9.8)

Copy Markdown View Source

Renders an EEx template string against query-result bindings into a final source-code string. Stdlib EEx, not a Tera/Liquid port -- see pack.toml for why.

Summary

Functions

Evaluates template_string as EEx with bindings (a keyword list or map with atom keys) in scope, returning the rendered source string.

Functions

render(template_string, bindings)

@spec render(String.t(), keyword() | map()) :: String.t()

Evaluates template_string as EEx with bindings (a keyword list or map with atom keys) in scope, returning the rendered source string.