Permalink
Browse files

v6.16.0. Improvement.

- v6.16.0 December 4, 2012
	- The amount of render passes is now customisable via the
`renderPasses` configuration option, defaults to `1`
		- Increment this value dependening on how many levels of
cross-document references you have (e.g. 2 passes for C includes B, B
includes A)
	- The render pass functionality has been changed to render all
documents that don't reference anything else first, then for each
additional render pass, render documents that do reference others
		- Previously it would render both types of documents in the one
batch, which resulted in hit and miss results
		- Doing this, we now safely have the default `renderPasses` value set
to `1` which has the same effect as the traditional `2` render pass
		- Refer to [issue #359](#359)
for more information
  • Loading branch information...
balupton committed Dec 4, 2012
1 parent a99478d commit 22a751226b09dd196f7ad18ab2e966b0dfb667c1
Showing with 18 additions and 431 deletions.
  1. +8 −0 History.md
  2. +1 −1 package.json
  3. +3 −3 test/out-expected/attributes-nolayout.txt
  4. +6 −427 test/out-expected/attributes-withlayout.txt
View
@@ -1,5 +1,13 @@
## History
- v6.16.0 December 4, 2012
- The amount of render passes is now customisable via the `renderPasses` configuration option, defaults to `1`
- Increment this value dependening on how many levels of cross-document references you have (e.g. 2 passes for C includes B, B includes A)
- The render pass functionality has been changed to render all documents that don't reference anything else first, then for each additional render pass, render documents that do reference others
- Previously it would render both types of documents in the one batch, which resulted in hit and miss results
- Doing this, we now safely have the default `renderPasses` value set to `1` which has the same effect as the traditional `2` render pass
- Refer to [issue #359](https://github.com/bevry/docpad/issues/359) for more information
- v6.15.0 December 3, 2012
- [Nodejitsu](http://nodejitsu.com/) Support
View
@@ -1,6 +1,6 @@
{
"name": "docpad",
"version": "6.15.0",
"version": "6.16.0",
"description": "DocPad is a language agnostic document management system. This means you write your website as documents, in whatever language you wish, and DocPad will handle the compiling, templates and layouts for you. For static documents it will generate static files, for dynamic documents it'll re-render them on each request. You can utilise DocPad by itself, or use it as a module your own custom system. It's pretty cool, and well worth checking out. We love it.",
"homepage": "https://github.com/bevry/docpad",
"installUrl": "http://docpad.org/install",
@@ -2,8 +2,8 @@
"basename": "attributes-nolayout",
"body": "# Fetch data\nattrs = @getDocument().getAttributes()\n\n# Delete environment specific variables\n# timezone makes the dates impossible\n# path differences make them impossible\n# data is too much output\ndelete attrs.ctime\ndelete attrs.mtime\ndelete attrs.date\ndelete attrs.fullPath\ndelete attrs.fullDirPath\ndelete attrs.outPath\ndelete attrs.outDirPath\ndelete attrs.data\n\n# Sort the attributes\nkeys = []\nkeys.push(key) for own key,value of attrs\nkeys.sort()\nsortedAttrs = {}\nfor key in keys\n sortedAttrs[key] = attrs[key]\n\n# Output data\ntext JSON.stringify(sortedAttrs,null,'\\t')",
"content": "# Fetch data\nattrs = @getDocument().getAttributes()\n\n# Delete environment specific variables\n# timezone makes the dates impossible\n# path differences make them impossible\n# data is too much output\ndelete attrs.ctime\ndelete attrs.mtime\ndelete attrs.date\ndelete attrs.fullPath\ndelete attrs.fullDirPath\ndelete attrs.outPath\ndelete attrs.outDirPath\ndelete attrs.data\n\n# Sort the attributes\nkeys = []\nkeys.push(key) for own key,value of attrs\nkeys.sort()\nsortedAttrs = {}\nfor key in keys\n sortedAttrs[key] = attrs[key]\n\n# Output data\ntext JSON.stringify(sortedAttrs,null,'\\t')",
"contentRendered": "{\n\t\"basename\": \"attributes-nolayout\",\n\t\"body\": \"# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"content\": \"# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"contentRendered\": null,\n\t\"contentRenderedWithoutLayouts\": null,\n\t\"contentType\": \"application/octet-stream\",\n\t\"dynamic\": false,\n\t\"encoding\": \"utf8\",\n\t\"extension\": \"coffee\",\n\t\"extensions\": [\n\t\t\"txt\",\n\t\t\"coffee\"\n\t],\n\t\"filename\": \"attributes-nolayout.txt.coffee\",\n\t\"header\": \"title: 'Attributes No Layout'\\ntags: ['attributes','with-layout']\\nreferencesOthers: true\",\n\t\"id\": \"attributes-nolayout.txt.coffee\",\n\t\"isDocument\": true,\n\t\"meta\": {\n\t\t\"title\": \"Attributes No Layout\",\n\t\t\"tags\": [\n\t\t\t\"attributes\",\n\t\t\t\"with-layout\"\n\t\t],\n\t\t\"referencesOthers\": true\n\t},\n\t\"name\": \"attributes-nolayout.txt\",\n\t\"outContentType\": \"text/plain\",\n\t\"outExtension\": \"txt\",\n\t\"outFilename\": \"attributes-nolayout.txt\",\n\t\"parser\": \"yaml\",\n\t\"referencesOthers\": true,\n\t\"relativeBase\": \"attributes-nolayout\",\n\t\"relativeDirPath\": \"\",\n\t\"relativeOutDirPath\": \"\",\n\t\"relativeOutPath\": \"attributes-nolayout.txt\",\n\t\"relativePath\": \"attributes-nolayout.txt.coffee\",\n\t\"render\": true,\n\t\"renderSingleExtensions\": false,\n\t\"rendered\": false,\n\t\"slug\": \"attributes-nolayout\",\n\t\"source\": \"---\\ntitle: 'Attributes No Layout'\\ntags: ['attributes','with-layout']\\nreferencesOthers: true\\n---\\n\\n# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"tags\": [\n\t\t\"attributes\",\n\t\t\"with-layout\"\n\t],\n\t\"title\": \"Attributes No Layout\",\n\t\"url\": \"/attributes-nolayout.txt\",\n\t\"urls\": [\n\t\t\"/attributes-nolayout.txt\"\n\t],\n\t\"write\": true\n}",
"contentRenderedWithoutLayouts": "{\n\t\"basename\": \"attributes-nolayout\",\n\t\"body\": \"# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"content\": \"# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"contentRendered\": null,\n\t\"contentRenderedWithoutLayouts\": null,\n\t\"contentType\": \"application/octet-stream\",\n\t\"dynamic\": false,\n\t\"encoding\": \"utf8\",\n\t\"extension\": \"coffee\",\n\t\"extensions\": [\n\t\t\"txt\",\n\t\t\"coffee\"\n\t],\n\t\"filename\": \"attributes-nolayout.txt.coffee\",\n\t\"header\": \"title: 'Attributes No Layout'\\ntags: ['attributes','with-layout']\\nreferencesOthers: true\",\n\t\"id\": \"attributes-nolayout.txt.coffee\",\n\t\"isDocument\": true,\n\t\"meta\": {\n\t\t\"title\": \"Attributes No Layout\",\n\t\t\"tags\": [\n\t\t\t\"attributes\",\n\t\t\t\"with-layout\"\n\t\t],\n\t\t\"referencesOthers\": true\n\t},\n\t\"name\": \"attributes-nolayout.txt\",\n\t\"outContentType\": \"text/plain\",\n\t\"outExtension\": \"txt\",\n\t\"outFilename\": \"attributes-nolayout.txt\",\n\t\"parser\": \"yaml\",\n\t\"referencesOthers\": true,\n\t\"relativeBase\": \"attributes-nolayout\",\n\t\"relativeDirPath\": \"\",\n\t\"relativeOutDirPath\": \"\",\n\t\"relativeOutPath\": \"attributes-nolayout.txt\",\n\t\"relativePath\": \"attributes-nolayout.txt.coffee\",\n\t\"render\": true,\n\t\"renderSingleExtensions\": false,\n\t\"rendered\": false,\n\t\"slug\": \"attributes-nolayout\",\n\t\"source\": \"---\\ntitle: 'Attributes No Layout'\\ntags: ['attributes','with-layout']\\nreferencesOthers: true\\n---\\n\\n# Fetch data\\nattrs = @getDocument().getAttributes()\\n\\n# Delete environment specific variables\\n# timezone makes the dates impossible\\n# path differences make them impossible\\n# data is too much output\\ndelete attrs.ctime\\ndelete attrs.mtime\\ndelete attrs.date\\ndelete attrs.fullPath\\ndelete attrs.fullDirPath\\ndelete attrs.outPath\\ndelete attrs.outDirPath\\ndelete attrs.data\\n\\n# Sort the attributes\\nkeys = []\\nkeys.push(key) for own key,value of attrs\\nkeys.sort()\\nsortedAttrs = {}\\nfor key in keys\\n sortedAttrs[key] = attrs[key]\\n\\n# Output data\\ntext JSON.stringify(sortedAttrs,null,'\\\\t')\",\n\t\"tags\": [\n\t\t\"attributes\",\n\t\t\"with-layout\"\n\t],\n\t\"title\": \"Attributes No Layout\",\n\t\"url\": \"/attributes-nolayout.txt\",\n\t\"urls\": [\n\t\t\"/attributes-nolayout.txt\"\n\t],\n\t\"write\": true\n}",
"contentRendered": null,
"contentRenderedWithoutLayouts": null,
"contentType": "application/octet-stream",
"dynamic": false,
"encoding": "utf8",
@@ -37,7 +37,7 @@
"relativePath": "attributes-nolayout.txt.coffee",
"render": true,
"renderSingleExtensions": false,
"rendered": true,
"rendered": false,
"slug": "attributes-nolayout",
"source": "---\ntitle: 'Attributes No Layout'\ntags: ['attributes','with-layout']\nreferencesOthers: true\n---\n\n# Fetch data\nattrs = @getDocument().getAttributes()\n\n# Delete environment specific variables\n# timezone makes the dates impossible\n# path differences make them impossible\n# data is too much output\ndelete attrs.ctime\ndelete attrs.mtime\ndelete attrs.date\ndelete attrs.fullPath\ndelete attrs.fullDirPath\ndelete attrs.outPath\ndelete attrs.outDirPath\ndelete attrs.data\n\n# Sort the attributes\nkeys = []\nkeys.push(key) for own key,value of attrs\nkeys.sort()\nsortedAttrs = {}\nfor key in keys\n sortedAttrs[key] = attrs[key]\n\n# Output data\ntext JSON.stringify(sortedAttrs,null,'\\t')",
"tags": [
Oops, something went wrong.

0 comments on commit 22a7512

Please sign in to comment.