parcel-plugin-pug icon indicating copy to clipboard operation
parcel-plugin-pug copied to clipboard

Locals

Open argyleink opened this issue 7 years ago • 2 comments

How do I pass locals? I'd really like to pass in data to keep my jade dry. 🤘

argyleink avatar Mar 14 '18 17:03 argyleink

Same here. I want to migrate a http://harpjs.com/ project to parcel.

Harp has a harp.json for data that is available to all templates and _data.json which maps filenames to data. You can also access data about the file you're in http://harpjs.com/docs/development/contents http://harpjs.com/docs/development/current

I have never used parcel before and I'm not sure if it's even something that fits into its philosophy.

Prinzhorn avatar Mar 28 '18 09:03 Prinzhorn

i'd love it if it looked in a folder called /data, used quaff, and piped it as locals. would still be 0 config..

if you shared quickly how that could be implemented in this plugin, i could fork and try to offer it

argyleink avatar Mar 29 '18 03:03 argyleink