Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make rendercontext optional

  • Loading branch information...
commit 18496f7b9b1574c7eba9bafc5b7612aad6056e6d 1 parent e116d96
@Techwraith Techwraith authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/template/adapters/ejs/index.js
View
3  lib/template/adapters/ejs/index.js
@@ -129,12 +129,13 @@ var getTemplateUrl = function (templateRoot, partialUrl, parentNode, isLayout) {
return templateUrl;
};
-Templater.prototype.partial = function (partialUrl, renderContext, parentNode) {
+Templater.prototype.partial = function (partialUrl, renderContextParam, parentNode) {
var _this = this,
node,
partialId = this.currentPartialId,
isBaseNode = !this.baseTemplateNode,
+ renderContext = renderContextParam || {},
templateUrl;
templateUrl = getTemplateUrl(this.templateRoot, partialUrl, parentNode, this.isLayout);
Please sign in to comment.
Something went wrong with that request. Please try again.