Banashek
Banashek
Yeah works in macvim and gvim, but not in iterm2. This is related to #1 in that if you look at the comments at the top of the theme file,...
I believe there are cases where a concrete path would be desired to have precedence. Say part of your route path is fuzzy, but in certain concrete cases you want...
No you're right that looks to be the correct behavior. I should have pulled down the branch and tested myself rather than trying to eyeball the code. Thanks for providing...
I've been curious about how this stuff works so I dug in. Here are some notes from both watching a relevant presentation as well as looking into the client-side library:...
An alternate approach that sounds close-ish to the "initial stage" you're describing: https://github.com/hopsoft/stimulus_reflex Essentially turbolinks, except websockets + stimulusjs. Only adding the link to increase the sources for inspiration. Also,...
In the cases provided earlier in the thread, I believe that `when` is being compared with `then`, `do`, and `with`. I mentally bucket `when` into a different category of keywords...
Just for reference, since usually live-reloading is only done in development, I handle it like this: https://github.com/Banashek/Universal-FSharp-Samples/blob/master/UniversalLiveReloading/src/App.fs . And use a port-incrementing approach to avoid socketexceptions only when the `DEVELOPMENT=true`...
Would [authorizeRequest](https://github.com/giraffe-fsharp/Giraffe/blob/6fe39c21abdf85bf1e49db55a053342c42186e7f/src/Giraffe/Auth.fs#L47) work here? ```fsharp let webApp = choose [ route "/ping" >=> text "pong" route "/" >=> htmlView indexView authorizeRequest (fun x -> x.Request.Host.Port = 2000) (text "failed") >=>...
You're correct. That would not compile down (I was using the default routing). Here's a version that does: ```fs let validateApiKey (ctx : HttpContext) = match ctx.TryGetRequestHeader "X-API-Key" with |...
This does look to be broken. Fortunately, we can do the Giraffe thing and lean on the [MediaTypeHeaderValue](https://github.com/dotnet/aspnetcore/blob/0ee742c53f2669fd7233df6da89db5e8ab944585/src/Http/Headers/src/MediaTypeHeaderValue.cs) class which has a [isSubsetOf](https://github.com/dotnet/aspnetcore/blob/0ee742c53f2669fd7233df6da89db5e8ab944585/src/Http/Headers/src/MediaTypeHeaderValue.cs#L385) method that should help in this scenario....