-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternatively accept _data.js
for metadata instead of plain JSON?
#8
Comments
You have peaked my curiosity, but it still isn't clear to me how one would use this. Can you give me an example of what a typical |
Sure, I updated the gist with a |
Just in case, FYI I adjusted the gist code with those fixes:
|
Just in case anybody would still like to know of use cases for this, there is the fact helper functions could be placed in _data.js. Also, if .coffee was also supported, it would allow a much nicer format for writing it. |
Did this ever go anywhere? I've run into a similar use case (using harp) that would be covered by being able to include JS functions via a _data.js (vs _data.json). Also, I'd be a fan of allowing .coffee extensions as well though .js itself would be fine. |
Originally: sintaxi/harp#103
This gist works for me (no edge case checks done though, that's for tests).
The text was updated successfully, but these errors were encountered: