Url parameters

In addition to static string paths, we can specify route arguments.
Suave comes with a cool feature called "typed routes", which gives you statically typed control over arguments for your route. As an example, let's see how we can add id of an album to the details route:

App.fs

12: 13:

pathScan"/store/details/%d"
(funid->OK (sprintf"Details: %d"id))

This might look familiar to print formatting from C++, but it's more powerful.
What happens here is that the compiler checks the type for the %d argument and complains if you pass it a value which is not an integer.
The WebPart will apply for requests like $rootUrl/store/details/28.
In the above example, there are a few important aspects: