def evaluate_expression(expression, context):
 compiled_expr = environment.compile_expression(expression)
 if isinstance(context, LazyDict):
  context = context.store
 return compiled_expr(**context)

def evaluate_expression ( expression , context ) : compiled_expr = environment . compile_expression ( expression ) if isinstance ( context , LazyDict ) : context = context . store return compiled_expr ( ** context )
evaluate a jinja expression using a given context with support for lazydicts .