Skip to content
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

Global data support #2477

Closed
ralsina opened this issue Aug 27, 2016 · 2 comments
Closed

Global data support #2477

ralsina opened this issue Aug 27, 2016 · 2 comments
Milestone

Comments

@ralsina
Copy link
Member

ralsina commented Aug 27, 2016

Jekyll-style: load data files from data/ and put them in global context, it's probably a 10-line patch

@ralsina ralsina added this to the v7.7.13 milestone Aug 27, 2016
@tritium21
Copy link
Contributor

Data should be namespaced in the global context. I wouldn't want a misspelled key in a datafile to b0rk my entire site (very likely without an error message for feedback)

@ralsina
Copy link
Member Author

ralsina commented Aug 27, 2016

Yes, it will be in GLOBAL_CONTEXT[data][nameofthefilewithoutextension]

ralsina added a commit that referenced this issue Aug 27, 2016
ralsina added a commit that referenced this issue Aug 28, 2016
@ralsina ralsina closed this as completed Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants