Expand description
Expression evaluation using exprimo
Supports JavaScript-like expressions in bindings:
${state.selected ? '#FFA7E1' : '#374151'}${item.count > 10 ? 'many' : 'few'}${state.user.name + ' (' + state.user.role + ')'}
Functionsยง
- build_
expression_ context - Build a context for expression evaluation from state and optional item
- evaluate_
expression - Evaluate an expression string with the given context
- evaluate_
template_ string - Evaluate a template string that may contain expressions
- extract_
bindings_ from_ expression - Extract all state and item bindings from an expression string
- is_
expression - Check if a string contains an expression (not just a simple path)