Re: Request scoped information in Vibe.d

2018-07-29 Thread Johannes Loher via Digitalmars-d-learn
On Sunday, 22 July 2018 at 18:21:21 UTC, Venkat wrote: On Sunday, 22 July 2018 at 08:43:23 UTC, Johannes Loher wrote: On Sunday, 22 July 2018 at 06:21:40 UTC, Venkat wrote: [...] What is your usecase? If you simply want to pass a variable to a diet template, just pass it as a template parame

Re: Request scoped information in Vibe.d

2018-07-22 Thread Venkat via Digitalmars-d-learn
On Sunday, 22 July 2018 at 08:43:23 UTC, Johannes Loher wrote: On Sunday, 22 July 2018 at 06:21:40 UTC, Venkat wrote: How do I make variables available to diet templates ? Java has request.setAttribute. Vibe.d's HTTPServerRequest has params and queryString. But by the looks of it, neither one o

Re: Request scoped information in Vibe.d

2018-07-22 Thread Johannes Loher via Digitalmars-d-learn
On Sunday, 22 July 2018 at 06:21:40 UTC, Venkat wrote: How do I make variables available to diet templates ? Java has request.setAttribute. Vibe.d's HTTPServerRequest has params and queryString. But by the looks of it, neither one of them is created for the purpose of temporary storage in the r