Skip to content
Browse files

layout support

  • Loading branch information...
1 parent 5896edb commit b824c7d61908e566aab1f81c20815c4893c3d31d @pauliusuza pauliusuza committed Mar 25, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/view.js
View
10 lib/view.js
@@ -70,11 +70,11 @@ var View = Class.create ({
var local = options;
if (opts) utils.merge(local, opts);
var localext = local.engine || self.defaultEngine;
- console.log('sub view ', local.settings.views+'/'+locpath+'.'+localext);
-
- var x = self.engine(local.settings.views+'/'+locpath+'.'+localext, local);
- console.log(x, '<<>>><<<');
- return x;
+ var cb = function(lerr, lres) {
+ return lres
+ };
+ self.engine(local.settings.views+'/'+locpath+'.'+localext, local, cb);
+ return cb;
};
if(layout != false) {

0 comments on commit b824c7d

Please sign in to comment.
Something went wrong with that request. Please try again.