Hi, I was wondering if Gatsby has support for something like this?
https://middlemanapp.com/advanced/dynamic_pages/
I'd like to pass some data to a template and have Gatsby generate the pages
Yes-ish.
You can't yet dynamically create pages but if you add a react component file (e.g. cool-dynamic-page.js) it'll get created at /cool-dynamic-page/. Each page component gets passed all site data at this.props.route.pages. A good example of this is the index page for the blog starter https://github.com/gatsbyjs/gatsby-starter-blog/blob/master/pages/index.js
I'm working towards making this paradigm much more powerful.
I need something like this too =\
FYI, we implemented this in Phenomic by reading user react-router routes and generate all possible pages according to front-matter metadata https://phenomic.io/docs/usage/routing/
Would love to see what's possible here! :-)
@dmitrig01 this is all working in v1! Checkout this issue from last fall https://github.com/gatsbyjs/gatsby/issues/421 and the gatsbygram case study https://www.gatsbyjs.org/blog/gatsbygram-case-study/#app-structure
Awesome!! Somehow google decided that this issue was the most relevant thing, but seems that is not the case :-) thanks!
Well now all future Google visitors will have breadcrumbs to direct them on
the right path :-)
On Sun, Apr 2, 2017, 9:38 PM Dmitri G notifications@github.com wrote:
Awesome!! Somehow google decide that this issue was the most relevant
thing, but seems that is not the case :-) thanks!—
You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/373#issuecomment-291031383,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEVhzIj4dRSRONq4T58wC2RnIXF-2Amks5rsE2sgaJpZM4JaXLZ
.
Most helpful comment
Well now all future Google visitors will have breadcrumbs to direct them on
the right path :-)
On Sun, Apr 2, 2017, 9:38 PM Dmitri G notifications@github.com wrote: