lib/hbs.js
function(layouts) {
      var currentLayout;
      layouts = layouts.slice(0);
      currentLayout = self.compile(str, layoutFile);
      layouts.push(currentLayout);
      if (useCache) {
        self.cache[layoutFile] = layouts.slice(0);
      }
      cb(null, layouts);
    }
function(layouts) {
      var currentLayout;
      layouts = layouts.slice(0);
      currentLayout = self.compile(str, layoutFile);
      layouts.push(currentLayout);
      if (useCache) {
        self.cache[layoutFile] = layouts.slice(0);
      }
      cb(null, layouts);
    }
function ( layouts ) { var currentLayout ; layouts = layouts . slice ( 0 ) ; currentLayout = self . compile ( str , layoutFile ) ; layouts . push ( currentLayout ) ; if ( useCache ) { self . cache [ layoutFile ] = layouts . slice ( 0 ) ; } cb ( null , layouts ) ; }
This function returns the current layout stack to the caller
This function returns the current layout stack to the caller