Browse files

layout support

  • Loading branch information...
1 parent 0c92ca8 commit 9cd7eff5e8b327cde9b569eaf2f83bd361d46274 @pauliusuza pauliusuza committed Mar 25, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/view.js
View
8 lib/view.js
@@ -67,15 +67,13 @@ var View = Class.create ({
var extension = options.engine || self.defaultEngine;
options.render = function(locpath, opts) {
- return 'd';
var local = options;
if (opts) utils.merge(local, opts);
var localext = local.engine || self.defaultEngine;
- var cb = function(lerr, lres) {
+ self.engine(local.settings.views+'/'+locpath+'.'+localext, local, return function(lerr, lres) {
return lres
- };
- self.engine(local.settings.views+'/'+locpath+'.'+localext, local, cb);
- return cb;
+ });
+
};
if(layout != false) {

0 comments on commit 9cd7eff

Please sign in to comment.