Saturn
Saturn copied to clipboard
Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
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...
Using the template [here](https://github.com/SaturnFramework/Saturn.Template). Changing the `Router.fs` to something like: ```fsharp let getNameAndAge nameAndAge next ctx = let name, age = nameAndAge Successful.OK (json name) next ctx let defaultView =...
The current implementation of [Controller.file](https://github.com/SaturnFramework/Saturn/blob/b06fe74eff2c215084e582e8de19d59160c6afa1/src/Saturn/ControllerHelpers.fs#L45) only works for html files as the called Giraffe code sets the ContentType: [here](https://github.com/giraffe-fsharp/Giraffe/blob/e02cc991140cf3048bbe274213dd8bd732f441b8/src/Giraffe/HttpContextExtensions.fs#L417) `ctx.SetContentType "text/html; charset=utf-8"` Different typed files e.g. css will not work...
[Phoenix LiveView](https://github.com/phoenixframework/phoenix_live_view) ([announcement](https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript)) leverages the channels mechanism to provide real-time updates to server-rendered content in web applications. In my opinion, this is one of the best parts of Phoenix. For...
This is an initial implementation of #269, looking for feedback. Things I think should be added before this PR is ready to merge: 1\. Using `get_head` in the same router...
A few ideas what to add to ApplicationBuilder for some common web-application scenarios: ```fsharp let app = application { index_page "index.html" default_error_page "error.html" blacklist_filter_urls ["%252F%252F";"%2F%2F";".%2F";".%252F";"%3C";"%253C";".."] static_files_auth_required ["userhomepage.html"; "paymentcards.html"] static_files_corsMap corsToMime...
Hi, I believe I have found an error with the template obtained using these https://saturnframework.org//tutorials/how-to-start.html instructions, in the apiRouter and api pipeline which are commented out. The commented out apiRouter...
I've seen this a few times, but people ask about a sample to show oauth configuration. We should make one that illustrates the different configurations (naturally with secret placeholders and...
Setting the logger via the `azureFunction` computation expression and then getting it with `ctx.GetLogger()` doesn't actually log anything. How to reproduce: Take the `Saturn.Func` sample from this repo and update...
Possibly related to issues #126, #108, #111 Windows 10 Saturn 0.7.6 Dotnet SDK 2.1.403 Links/paths are not expected to end in slash, but Links.index ends them in a slash. If...