soma.cell

Templates builtins

5 builtins of Soma 3.2.4 in the category Templates, with their exact signatures, as soma describe --builtins --json prints them.

load_template

load_template(path: String, key, value, ...) -> String

Read a file and substitute each {key} placeholder with its value.

deterministic · replay: pure

load

load(path: String, key, value, ...) -> String

Alias of load_template.

deterministic · replay: pure

include

include(path: String, key, value, ...) -> String

Alias of load_template.

deterministic · replay: pure

render

render(template: String, key, value, ...) -> String

Substitute {key} placeholders in an in-memory template string.

deterministic · replay: pure

render_each

render_each(rows: List<Map>, template: String) -> String

Render the template once per row, substituting {field} from each map.

deterministic · replay: pure