demo-hogan-local-js/hogan.js
function findInScope(key, scope, doModelGet) {
    var val, checkVal;

    if (scope && typeof scope == 'object') {

      if (scope[key] != null) {
        val = scope[key];

      // try lookup with get for backbone or similar model data
      } else if (doModelGet && scope.get && typeof scope.get == 'function') {
        val = scope.get(key);
      }
    }

    return val;
  }
function findInScope(key, scope, doModelGet) {
    var val, checkVal;

    if (scope && typeof scope == 'object') {

      if (scope[key] != null) {
        val = scope[key];

      // try lookup with get for backbone or similar model data
      } else if (doModelGet && scope.get && typeof scope.get == 'function') {
        val = scope.get(key);
      }
    }

    return val;
  }
function findInScope ( key , scope , doModelGet ) { var val , checkVal ; if ( scope && typeof scope == 'object' ) { if ( scope [ key ] != null ) { val = scope [ key ] ; // try lookup with get for backbone or similar model data } else if ( doModelGet && scope . get && typeof scope . get == 'function' ) { val = scope . get ( key ) ; } } return val ; }
Find a key in an object
Find a key in an object