resolvePath function
Implementation
dynamic resolvePath(String path, Map<String, dynamic> scope) {
for (final prefix in renderScopePrefixes) {
if (path.startsWith('$prefix.')) {
final target = scope[prefix];
if (target == null) return null;
return getByPath(target, path.substring(prefix.length + 1));
} else if (path == prefix) {
return scope[prefix];
}
}
// Fallback: direct path resolution against scope
return getByPath(scope, path);
}