Check out the README for more a more in depth explanation of why this package exists. Otherwise, skip down application to get started.
application
A replacement for Browser.application that will automatically process your hash-based Url's into ones that will work out of the box with the standard parsing logic of Url.Parser.
Browser.application
Url.Parser
It's usage is the same as Browser.application:
import Browser.Hash as Hash main : Program () Model Msg main = Hash.application { init = init , view = view , update = update , subscriptions = subscriptions , onUrlChange = App.RouteChange << Router.parse , onUrlRequest = App.OnUrlRequest }
A replacement for
Browser.applicationthat will automatically process your hash-based Url's into ones that will work out of the box with the standard parsing logic ofUrl.Parser.It's usage is the same as
Browser.application: