still icon indicating copy to clipboard operation
still copied to clipboard

Dynamic pages and datafiles

Open expilo opened this issue 4 years ago • 6 comments

I wonder if it might be possible to generate pages dynamically using datafiles with Still?

expilo avatar Jan 02 '22 17:01 expilo

Hello! I had some ideas to implement datafiles like 11ty. But can you elaborate on what you're thinking?

gabrielpoca avatar Jan 03 '22 10:01 gabrielpoca

For the starters (and maybe it would be good enough) it could be something like the dynamic pages and datafiles in Middleman. I find them pretty useful when making more complex websites. Of course, there are probably other ways to do it. Basically any solution which would take a data structure and generate pages dynamically based on the records, queries or modified data coming from data files would do.

expilo avatar Jan 03 '22 14:01 expilo

I like this. I can easily implement datafiles because it's just an abstraction. Dynamic pages are a bit harder because the framework is still coupled to 1 page = 1 file. I definitely want to change that because to support responsive images I had to "hack" it. Let me see what I can do. Btw, are you available for code reviews? Fernando doesn't have a lot of time right now and I could use an extra pair of eyes.

gabrielpoca avatar Jan 09 '22 18:01 gabrielpoca

I can't promise fast feedback, but I will definitely need a new static site generator so I will keep an eye. However dynamic pages are a must for me. It could be possible perhaps to generate source pages from a datafile before but then the point of implementing datafiles is missed. Unless one wants to present data from datafile in a single page, of course.

expilo avatar Jan 09 '22 19:01 expilo

I've been away for a while so pardon any mistake while I jog my memory but don't we have a synchronous step before the traversal ends? I'm wondering if we can do a version of passthrough copy to shortcircuit something like the middleman proxy.

frm avatar Jan 27 '22 14:01 frm

We can, but I do like eleventy's solution better. Can you have a look?

gabrielpoca avatar Jan 29 '22 00:01 gabrielpoca

Closing because it's already implemented.

gabrielpoca avatar Sep 22 '22 22:09 gabrielpoca