@modoki/engine / index / resolveTemplate
Function: resolveTemplate()
resolveTemplate(
template,state):string
Resolve "{field}" placeholders in a text template. Each placeholder resolves against the store state first, then a registered read source, else stays literal ({field}). null/undefined count as "absent": a null store field falls through to a read source (and renders empty if neither resolves), rather than rendering the literal string "null". Falsy-but-present values (0, false, '') DO resolve — they're meaningful.
Parameters
template
string
state
Record<string, unknown>
Returns
string