Function: interpolate()
function interpolate(text, context): string;
Defined in: packages/kata-core/src/runtime/evaluator.ts:67
Interpolates variable paths in text strings. Replaces ${path} patterns with values from context. Supports dot notation (e.g., player.stats.str).
Parameters
text
string
The text string containing ${path} patterns
context
Record<string, any>
The context object to resolve paths from
Returns
string
The interpolated string with variables replaced