-
Notifications
You must be signed in to change notification settings - Fork 51
Grow as a static data compiler for Vue/Svelte and such? #1110
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
Comments
Hi @OktarinTentakel ! Glad you are liking grow :) There isn't really anything stopping you from using grow to template out data for the frameworks to use. Depending on what data you are going to be generating there are different ways that you can handle it.
So, not impossible, just depends on how much you need to setup to get the json created and how you are storing the data. :) If you have some specific use cases that you need suggestions on just let me know. |
Thanks for the response. I guess I'll take a day to build a proof of concept and see how that goes. Any sore point that come up, I'll give you feedback about. I'm still not 100% certain that this is a brilliant idea, but more often than not, content editing for these apps is a rather simple thing, a dynamic backend seems out of proportion for. |
Finally I've come around playing around with the whole concept. What I stumbled upon, when trying to integrate data from a Google Sheet:
|
So far the only docs we have on the Google Sheets is in on the docs site. I agree that there are probably a lot missing in that information, I need to go through and compare what is missing compared to the docs to update that. I agree that I need to get back to the new format of the spreadsheet to make it available to work as a grid, I'll try to work on that soon. With the document permissions, a lot of it depends on how you are planning on using grow.
|
The last option sounds promising and I recently read about oauth with a service account, but without further documentation for usage with grow I feel a little lost. I'll try to document the public sheet case tomorrow. |
Hi there.
I really enjoyed using Grow in the past for static site development, it's the bee's knees and maybe my favorite generally unknown project out here. :D
But since there's more and more dynamic frontend stuff going on (for us mostly Vue and Svelte) I was entertaining the idea of using Grow as a data aggregator, providing localized data as (static) json for said frameworks via inline json or json files, while also using the normal templating to scaffold the whole thing and load all the magic stuff happening in the JSXlike files.
In my mind, this would mean constructing complex data structures as JSON-flat-files or JSON-strings from all the normally available contents and possibilites and render them to a template or a non-HTML-file.
Does this sound like a terrible idea to you? Did you ever envision something like this? And do you maybe have a tip or two concerning how to effectively construct consumable data structures with all the tool present?
Thanks for this lovely project again.
The text was updated successfully, but these errors were encountered: