SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
703 stars 108 forks source link

use_warbler seems to do nothing #300

Open groma84 opened 3 years ago

groma84 commented 3 years ago

Setting use_warbler in a pipeline seems to do nothing. E.g. creating a view showing the current time is run once at the start of the program and is then never evaluated again. Using the warbler function explictly works.

I made a small repro in this repo: https://github.com/groma84/saturn-warbler-repro

Running the program and opening http://localhost:5000/works gets the current time. But opening http://localhost:5000/broken shows the time from the program start, although the pipeline has use_warbler in it.

I tried fixing it already in Saturn but sadly failed.