Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

layout support

  • Loading branch information...
commit f9d461d6337faeadc72ff25212942d484d7afcd6 1 parent 61253dc
@pauliusuza pauliusuza authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/view.js
View
7 lib/view.js
@@ -58,9 +58,16 @@ var View = Class.create ({
* @api private
*/
+ ,renderHelper: function(path, options) {
+ this.engine(path, options, function(err, res) {
+ return res;
+ });
+ }
+
,render: function(options, fn){
var self = this;
this.engine(this.path, options, function(err, res) {
+ options.render = self.renderHelper;
var layout = options.layout || self.defaultLayout;
var extension = options.engine || self.defaultEngine;
if(layout != false) {
Please sign in to comment.
Something went wrong with that request. Please try again.