Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docpad-plugin-datafiles

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-datafiles - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

package.json
{
"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/).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc