derby-templates
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -251,3 +251,2 @@ var saddle = require('saddle'); | ||
this.hooks = hooks; | ||
this.optional = attributes && attributes.optional; | ||
} | ||
@@ -264,8 +263,3 @@ DynamicViewInstance.prototype = new ViewInstance(); | ||
var view = name && context.meta.views.find(name, namespace); | ||
if (!view) { | ||
if (this.optional) return exports.emptyTemplate; | ||
var message = context.meta.views.findErrorMessage(name, contextView); | ||
throw new Error(message); | ||
} | ||
return view; | ||
return view || exports.emptyTemplate; | ||
}; | ||
@@ -272,0 +266,0 @@ |
{ | ||
"name": "derby-templates", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48702
1341