{! function keys(o) { var keys = []; for (var k in o) { keys.push(k); } return keys; } function groupName(path) { var parts = path.split('/') ; var rootIndex = parts.indexOf('frameworks') ; if (rootIndex < 0) rootIndex = parts.indexOf('clients') ; if (rootIndex < 0) { return parts[parts.length - 2] ; } else { return parts.slice(rootIndex+2, parts.length-1).join('/') ; } }; function getSymbols(thisClass) { var ret = [thisClass.alias.toLowerCase()] ; var len = thisClass.properties.length ; while (--len>=0) { ret.push(thisClass.properties[len].alias.toLowerCase()) ; } return ret.join(' ') ; }; !} { records: [ { "type": "Doc", "guid": "{+(thisClass.alias)+}", "title": "{+(thisClass.alias)+}", "title": "SproutCore (SC)", "url": "{+(thisClass.alias)+}.html", "group": "{+groupName(thisClass.srcFile)+}", "symbols": "{+getSymbols(thisClass)+}", "path": "{+thisClass.srcFile+}" }, ] }