docpad-plugin-datafiles
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "docpad-plugin-datafiles", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "DocPad plugin for loading json/yml/etc. and making it avaliable to documents and layouts. Forked from docpad-plugin-data with several improvements", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,13 +7,14 @@ docpad-plugin-datafiles | ||
DocPad plugin for simple data files. Loads and parses JSON, YAML, JavaScript, and CoffeeScript files from `src/data/` and | ||
stores the contents on `config.templateData`, which makes the data available at `@filename` when rendering documents. | ||
[DocPad](http://docpad.org/) plugin for simple data files. | ||
Loads and parses JSON, YAML, JavaScript, and CoffeeScript files from `src/data/` and stores the contents on | ||
`config.templateData`, which makes the data available as `@filename` (or `{{filename}}` or whatever) when rendering | ||
documents and layouts. | ||
Forked from [docpad-plugin-data](https://github.com/SE7ENSKY/docpad-plugin-data) with several improvements: | ||
* Support for files with spaces, hyphens, etc. in the name (e.g. `file-name.json becomes `@fileName`.) | ||
Notable features: | ||
* Data is cached and only updated when the source file changes | ||
* Intelligent support for files with spaces, hyphens, etc. in the name (e.g. `file-name.json` becomes `@fileName`.) | ||
* Support for absolute folder paths | ||
* Data is cached and only updated when the source file changes | ||
* No annoying error about uncompiled CoffeeScript | ||
* Documentation | ||
* Tests | ||
## Installation | ||
@@ -69,4 +70,5 @@ | ||
Todo: | ||
* Support watching files for changes and only reloading changed files | ||
### Credits | ||
Original code was forked from [docpad-plugin-data](https://github.com/SE7ENSKY/docpad-plugin-data). | ||
Tests, documentation, various features, and other improvements by [Nathan Friedly](http://nfriedly.com/). |
9407
73