/wintersmith-sandbox

A Wintersmith plugin for dynamically reading data provided by a JavaScript file

Primary LanguageCoffeeScriptMIT LicenseMIT

wintersmith-sandbox

Dependency Status

A Wintersmith plugin for dynamically getting data from a JavaScript files/snippets. These script are run inside a sandbox.

The data provided by the script will be available in the content tree. It's added as data on the file's object:

for item in contents._.sandbox
  ...item.data.yourproperty

Installing

Install globally or locally using npm:

npm install [-g] wintersmith-sandbox

and add wintersmith-sandbox to your config.json

{
  "plugins": [
    "wintersmith-sandbox"
  ]
}

Author

© 2014 Martin Blumenstingl

License

Released under the MIT License.