docpad-plugin-handlebars
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -14,4 +14,2 @@ // Generated by CoffeeScript 1.3.3 | ||
HandlebarsPlugin.prototype.priority = 725; | ||
HandlebarsPlugin.prototype.handlebars = null; | ||
@@ -36,7 +34,7 @@ | ||
HandlebarsPlugin.prototype.render = function(opts) { | ||
var content, file, handlebars, inExtension, outExtension, templateData; | ||
inExtension = opts.inExtension, outExtension = opts.outExtension, templateData = opts.templateData, file = opts.file, content = opts.content; | ||
var content, handlebars, inExtension, templateData; | ||
inExtension = opts.inExtension, templateData = opts.templateData, content = opts.content; | ||
handlebars = this.handlebars; | ||
if (inExtension === 'hb' || inExtension === 'hbs' || inExtension === 'handlebars') { | ||
return opts.content = handlebars.compile(content)(templateData); | ||
return opts.content = handlebars.compile(opts.content)(templateData); | ||
} | ||
@@ -43,0 +41,0 @@ }; |
{ | ||
"name": "docpad-plugin-handlebars", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Adds support for the Handlebars templating engine to DocPad.", | ||
@@ -21,2 +21,3 @@ "homepage": "https://github.com/bevry/docpad-extras", | ||
"contributors": [ | ||
"Mike Moulton <mike@meltmedia.com> (http://meltmedia.com)", | ||
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)" | ||
@@ -23,0 +24,0 @@ ], |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
5485
7
1
20
52