How to reset the website when the user leaves it, with vibe.d?
vnr
cfcr at gmail.com
Tue Jun 29 21:23:07 UTC 2021
On Tuesday, 29 June 2021 at 20:40:29 UTC, Steven Schveighoffer
wrote:
> On 6/29/21 4:25 PM, vnr wrote:
>
>> [...]
>
> Has nothing to do with sessions, you are saving the text
> posted, and then making it the default text whenever the page
> is rendered.
>
> [here](https://github.com/noc-lang/playground/blob/0ec136b385c9aff306e15947082210d3bc230d10/source/app.d#L68) is where you save the text. [here](https://github.com/noc-lang/playground/blob/0ec136b385c9aff306e15947082210d3bc230d10/source/app.d#L50-L52) you pass it to the template, and [here](https://github.com/noc-lang/playground/blob/d6551e8a5f90b8ebc1732c6dfb72ba61113887af/views/home.dt#L128) you render it as the child of the text area.
>
> Just don't do that ;)
>
> -Steve
Ah, yes! Thanks a lot for pointing out the concerns, it was
pretty simple. I understand better, thank you both :)
More information about the Digitalmars-d-learn
mailing list