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
Install globally or locally using npm
:
npm install [-g] wintersmith-sandbox
and add wintersmith-sandbox
to your config.json
{
"plugins": [
"wintersmith-sandbox"
]
}
© 2014 Martin Blumenstingl
Released under the MIT License.