Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

layout support

  • Loading branch information...
commit 9cd7eff5e8b327cde9b569eaf2f83bd361d46274 1 parent 0c92ca8
Paulius Uza pauliusuza authored

Showing 1 changed file with 3 additions and 5 deletions. Show diff stats Hide diff stats

  1. +3 5 lib/view.js
8 lib/view.js
@@ -67,15 +67,13 @@ var View = Class.create ({
67 67 var extension = options.engine || self.defaultEngine;
68 68
69 69 options.render = function(locpath, opts) {
70   - return 'd';
71 70 var local = options;
72 71 if (opts) utils.merge(local, opts);
73 72 var localext = local.engine || self.defaultEngine;
74   - var cb = function(lerr, lres) {
  73 + self.engine(local.settings.views+'/'+locpath+'.'+localext, local, return function(lerr, lres) {
75 74 return lres
76   - };
77   - self.engine(local.settings.views+'/'+locpath+'.'+localext, local, cb);
78   - return cb;
  75 + });
  76 +
79 77 };
80 78
81 79 if(layout != false) {

0 comments on commit 9cd7eff

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