lib/htdocs/handlebars.js
function(parent, name, type) {
      if(JavaScriptCompiler.RESERVED_WORDS[name] || name.indexOf('-') !== -1 || !isNaN(name)) {
        return parent + "['" + name + "']";
      } else if (/^[0-9]+$/.test(name)) {
        return parent + "[" + name + "]";
      } else {
        return parent + "." + name;
      }
    }
function(parent, name, type) {
      if(JavaScriptCompiler.RESERVED_WORDS[name] || name.indexOf('-') !== -1 || !isNaN(name)) {
        return parent + "['" + name + "']";
      } else if (/^[0-9]+$/.test(name)) {
        return parent + "[" + name + "]";
      } else {
        return parent + "." + name;
      }
    }
function ( parent , name , type ) { if ( JavaScriptCompiler . RESERVED_WORDS [ name ] || name . indexOf ( '-' ) !== - 1 || ! isNaN ( name ) ) { return parent + "['" + name + "']" ; } else if ( / ^[0-9]+$ / . test ( name ) ) { return parent + "[" + name + "]" ; } else { return parent + "." + name ; } }
PUBLIC API: You can override these methods in a subclass to provide alternative compiled forms for name lookup and buffering semantics
PUBLIC API : You can override these methods in a subclass to provide alternative compiled forms for name lookup and buffering semantics