Permalink
Browse files

layout support

  • Loading branch information...
1 parent bc5a407 commit aef28473192c77093aa56e9d115e7e40daaf8f6e @pauliusuza pauliusuza committed Mar 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/view.js
View
@@ -72,11 +72,12 @@ var View = Class.create ({
var localext = local.engine || self.defaultEngine;
console.log('sub view ', local.settings.views+'/'+locpath+'.'+localext);
- self.engine(local.settings.views+'/'+locpath+'.'+localext, local, function(err, res) {
+ var x = self.engine(local.settings.views+'/'+locpath+'.'+localext, local, function(err, res) {
console.log(err, res, '<<<');
- if(err) return err;
+ if(err != null) return err;
return res;
});
+ console.log(x, '<<>>><<<');
};
if(layout != false) {

0 comments on commit aef2847

Please sign in to comment.