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
How can one implement dynamic pages. [feature request][discussion] #49
Comments
yst is designed to generate the content of a page based on
data; it isn't designed to generate the pages themselves
based on data as in your example.
I can see how this would be useful, and yst could be changed
in this way, but I'm not likely to do it myself, and you
might be better off using a more flexible tool like Hakyll.
+++ karan-ta [Feb 22 17 02:24 ]:
… In the demo example - what do we do if we need to implement an event
detail page.
for each event - if we need an event detail page - do we create each
page in index.yaml ?
for 1000's of events - this could be a pain area.
example for event data - we have some more fields that need to be shown
on event detail page.
* date:
+ 2009-04-20
+ 2009-04-22
speaker:karan
id:10
title: Seminar on web security
videos:
list of attendees:
__________________________________________________________________
and the event detail pages will be as :
events.html/9
events.html/10
events.html/11
events.html/12
and so on.
I am not stuck on this right away, but soon this could come up to work
on for my site.
so discussing ways to implement dynamic pages would be great.
maybe we add queryparam to fetch the params from the data.
and then for each param the page is generated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #49
2. https://github.com/notifications/unsubscribe-auth/AAAL5AQ8g8mcH22MmdT4fA8WL4CIiv7jks5rfAzJgaJpZM4MIdOp
|
Thank you john for fast and clear reply. I shall see if i can add this feature when i urgently need it. i came across one more similar case of this type of feature need. suppose i have a list of topics. topic 2 then my yaml starts becoming kinda long as follows data : and so on.... so a generator template / macro could be the answer for this too. so i shall study hakyll and other solutions to try and implement this when my data starts getting bigger. so maybe this issue can remain open for now for future refrence :) |
You could always have a program generate your index.yaml.
|
+1 |
In the demo example - what do we do if we need to implement an event detail page.
for each event - if we need an event detail page - do we create each page in index.yaml ?
for 1000's of events - this could be a pain area.
example for event data - we have some more fields that need to be shown on event detail page.
speaker:karan
id:10
title: Seminar on web security
videos:
list of attendees:
and the event detail pages will be as :
events.html/9
events.html/10
events.html/11
events.html/12
and so on.
I am not stuck on this right away, but soon this could come up to work on for my site.
so discussing ways to implement dynamic pages would be great.
maybe we add queryparam to fetch the params from the data.
and then for each param the page is generated.
The text was updated successfully, but these errors were encountered: