lunelson / penny

JavaScript ES6, Sass and Pug "on-the-fly" server built on Connect / Browser-Sync
MIT License
3 stars 0 forks source link

add data to locals, if there is a `data` entry point in `.pennyrc` #9

Closed lunelson closed 5 years ago

lunelson commented 6 years ago
  1. must use pennyrc.js format
  2. data key there would either contain a Promise, or require a file whose module.exports is a Promise
  3. that Promise would resolve the data i.e. dataPromise.then((data) => {/*...*/})
  4. This data would be attached to pugLocals under the key data