trikko / serverino

Small and ready-to-go http server, in D
https://trikko.github.io/serverino/
MIT License
46 stars 2 forks source link

cannot loop over cookies. #15

Closed aferust closed 2 months ago

aferust commented 2 months ago

Hello, me again :) I know request cookies are encapsulated in SafeAccess. but I need to loop over them. Is there any way to do this without me modifying my copy of Severino? Or do you want to forbid it to be deadly? Should we have a forward range for doing it? While working on implementing PHP support via CGI interface to servefolder I hit that barrier.

auto cookies() const { return _internal._cookie; } of corse works, but not safe enough.

Have an awesome day!

aferust commented 2 months ago

Oh sorry for my ignorance. last night i was too sleeepy, and did not recognize that SafeAccess has a field data for it.

aferust commented 2 months ago

Hello Andrea,

If you have a little time, please comment on this code draft. Is it a waste of time or worth investing some time in:

Some experiments on generating html pages using Material Design Lite in dlang.

https://github.com/aferust/genmdl-d

trikko commented 2 months ago

I've already done similar experiment using parserino to edit dom (it's really fast!) and/or guino to build a standalone app!

Serverino + Parserino make web development really esy (we use them a lot!). You can build html pages independently, without using strange template languages and then fill data using parserino with Dom query.

No more messed html with invalid code inside.

aferust commented 2 months ago

Hey, it looks great. My primary purpose is to be able to use semantic-ui[1] or material-ui. So we can pass class props to dom elements. How can one inject a js code? And, which kind of pipeline are you using to obtain fancy pages with less effort? I use semantic UI with react (+reactnative) a lot. I would like to render pages like: https://semantic-ui.com/examples/bootstrap.html.

1: https://semantic-ui.com/

trikko commented 2 months ago

To avoid losing topics I've enabled "discussion" tab on Serverino GitHub 😀 feel free to open new topics