docpad-plugin-combiner
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -46,5 +46,5 @@ // Generated by CoffeeScript 1.6.3 | ||
CombinerPlugin.prototype.renderAfter = function(opts, next) { | ||
var combineOutCollection, combineOutContent, combineOutFilePath, combineOutModel, config, key, outPath, outputFile, value, writeCount, _i, _len, _ref; | ||
var combineOutCollection, combineOutContent, combineOutFilePath, combineOutModel, config, contextRendered, key, outPath, outputFile, value, writeCount, _i, _len, _ref; | ||
config = this.docpad.getConfig(); | ||
combineOutCollection = this.docpad.collections.combineOut; | ||
combineOutCollection = this.docpad.getCollection("combineOut"); | ||
if (!combineOutCollection) { | ||
@@ -70,3 +70,6 @@ if (typeof next === "function") { | ||
} | ||
combineOutContent[combineOutFilePath] += combineOutModel.get('contentRendered'); | ||
contextRendered = combineOutModel.get('contentRendered'); | ||
if (contextRendered != null) { | ||
combineOutContent[combineOutFilePath] += contextRendered; | ||
} | ||
} | ||
@@ -73,0 +76,0 @@ writeCount = 0; |
{ | ||
"name": "docpad-plugin-combiner", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "A Docpad plugin that adds the ability to combine parts to create a final master file", | ||
@@ -27,7 +27,7 @@ "homepage": "https://github.com/pflannery/docpad-plugin-combiner", | ||
"node": ">=0.8", | ||
"docpad": ">=6.46" | ||
"docpad": ">=6.46 <=6.54.10" | ||
}, | ||
"devDependencies": { | ||
"coffee-script": ">=1.6", | ||
"docpad": ">=6.46" | ||
"docpad": ">=6.46 <=6.54.10" | ||
}, | ||
@@ -37,4 +37,4 @@ "main": "./out/combiner.plugin.js", | ||
"test": "node ./out/combiner.test.js", | ||
"test-debug": "node --debug-brk ./out/combiner.test.js" | ||
"test-debug": "node --debug-brk ./out/combiner.test.js" | ||
} | ||
} |
@@ -22,2 +22,3 @@ # Combiner Plugin for [DocPad](http://docpad.org) | ||
outPath: scripts/myScript.js | ||
write: false # prevents "Rename one of them to avoid an over-write" message | ||
--- | ||
@@ -31,2 +32,3 @@ function foo(){} | ||
outPath: scripts/myScript.js | ||
write: false # prevents "Rename one of them to avoid an over-write" message | ||
--- | ||
@@ -33,0 +35,0 @@ ### coffeescript ### |
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 bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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 bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
8894
6
94
59