lib/application.js
function buildTemplatePartial(path) {
  
  var tplDir = app.mvcpath + app.paths.templates;
  var p = path.replace(tplDir, '');
  var pos = p.indexOf('.');
  var ext = p.slice(pos+1);
  var tpl = p.slice(0,pos);

  if (ext in this.enginesByExtension) {
    
    var engine = this.enginesByExtension[ext];
    var func = engine.renderPartial(path);
    
    func.engine = engine;
    func.ext = ext;
    
    this.templates[tpl] = func;
    
  } else {
    
    throw new Error(util.format("Unable to render %s: engine not loaded",  this.relPath(path)));
    
  }
  
}
function buildTemplatePartial(path) {
  
  var tplDir = app.mvcpath + app.paths.templates;
  var p = path.replace(tplDir, '');
  var pos = p.indexOf('.');
  var ext = p.slice(pos+1);
  var tpl = p.slice(0,pos);

  if (ext in this.enginesByExtension) {
    
    var engine = this.enginesByExtension[ext];
    var func = engine.renderPartial(path);
    
    func.engine = engine;
    func.ext = ext;
    
    this.templates[tpl] = func;
    
  } else {
    
    throw new Error(util.format("Unable to render %s: engine not loaded",  this.relPath(path)));
    
  }
  
}
function buildTemplatePartial ( path ) { var tplDir = app . mvcpath + app . paths . templates ; var p = path . replace ( tplDir , '' ) ; var pos = p . indexOf ( '.' ) ; var ext = p . slice ( pos + 1 ) ; var tpl = p . slice ( 0 , pos ) ; if ( ext in this . enginesByExtension ) { var engine = this . enginesByExtension [ ext ] ; var func = engine . renderPartial ( path ) ; func . engine = engine ; func . ext = ext ; this . templates [ tpl ] = func ; } else { throw new Error ( util . format ( "Unable to render %s: engine not loaded" , this . relPath ( path ) ) ) ; } }
Builds a template partial
Builds a template partial