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, optional item, and data sources
- build_
expression_ context_ with_ data_ sources - Build a context for expression evaluation with optional data sources
- evaluate_
expression - Evaluate an expression string with the given context
- evaluate_
template_ string - Evaluate a template string that may contain expressions
- evaluate_
template_ string_ full - Evaluate a template string with full context including data sources
- extract_
bindings_ from_ expression - Extract all state, item, and data source bindings from an expression string
- is_
expression - Check if a string contains an expression (not just a simple path)