- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Feature Request: Allow datasources to be defined dynamically #349
Comments
@osterman I've had thoughts in the past about being able to define datasources inline, which may be a good general-case way to achieve what you're looking for. Something like:
The idea is that the Another approach, which may help with re-use:
Or it may even make more sense to not overload the
I think I prefer this last one since it separates concerns... This could interact nicely with the What do you think? |
Your proposal sounds wonderful. I don't have a strong preference either way on the interface. I see the benefits of having a |
Thanks for the feedback, @osterman - TBH I don't see why I can't support both the bare-url approach (first example) as well as the It turns out that I think I'll implement both of these. |
Yes, very nice indeed.
Yes, this has been a pain-point for us as well. |
getJSON
function
Wow! @hairyhenderson didn't expect you would implement that so quickly. Eager to go check this out. Thanks again! |
@osterman you're welcome! 😄 |
what
getJSON
andgetYAML
functionswhy
--data
parameter is insufficient for dynamic use cases (e.g. range over a list); it requires the caller to know in advance all the data endpointsuse-cases
Related
The immensely popular hugo CMS framework provides this method.
The text was updated successfully, but these errors were encountered: