You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when I have link to some blog post /#News/August/01/08/2019/big-announcement-to-tell, what is the best possible way to get each of fragment like "August" or "2019".
Or can we just redirect to /#News and parse August/01/08/2019/big-announcement-to-tell by our self?
The text was updated successfully, but these errors were encountered:
There are several ways, depending on what you want to do. If you want to get each fragment and build your page top-down, you can use the standard withRoute function and match on each component:
withRoute $\case->Just"News"-> withRoute $\day ->
withRoute $\month ->
withRoute $\year ->
withRoute $\name ->--build page with all these pieces
If you want them all at once you can just use allRouteSegments which is a Dynamic t [Text] (in this case) and you can build DOM with normal reflex combinators over this dynamic. For example:
Hi, when I have link to some blog post
/#News/August/01/08/2019/big-announcement-to-tell
, what is the best possible way to get each of fragment like "August" or "2019".Or can we just redirect to
/#News
and parseAugust/01/08/2019/big-announcement-to-tell
by our self?The text was updated successfully, but these errors were encountered: