I'm pleased to announce that this release just adds a little bit of missing convenience extensions/functions for the RouteContext
Navs
While you could always do something like
ctx.urlMatch.getParam<string>("username")
it was a bit hidden or required a little bit of knowledge of how UrlTemplates
works which isn't necessarily the focus of Navs.
This release adds a few more convenient functions tied straight to the RouteContext
instead of diving into urlMatch/urlTemplate and so on
let home (ctx: RouteContext, _) =
let username =
defaultValueArg (ctx.getParam("username")) "anonymous"
// or
let username =
ctx |> RouteContext.getParam "username" |> ValueOption.defaultValue "anonymous"
The extension method is to accomdate better for C# folks (ctx.GetParam<string>("name")
) it is also handy for the F# folks however, a pipable API is also available for the F# folks
v1.0.0-rc-004
This RC4 was silently pushed to NuGet but here are the notes
Navs.Terminal.Gui
A new package under the Navs family Navs.Terminal.Gui
, has been created, you can find the sample at samples/TGUI
showcasing how it can be used together with the newer Terminal.Gui
v2 work, please keep in mind this package is still experimental until Terminal.Gui releases a sable v2 version
Navs.Avalonia
Fix Nullable warnings from new F#9 features
Full Changelog: v1.0.0-rc-003...v1.0.0-rc-005