{"id":16335786,"url":"https://github.com/3noch/reflex-dom-nested-routing","last_synced_at":"2025-03-22T23:32:18.156Z","repository":{"id":27363872,"uuid":"106064928","full_name":"3noch/reflex-dom-nested-routing","owner":"3noch","description":"Nested client-side routing for Reflex-DOM","archived":false,"fork":false,"pushed_at":"2022-06-07T02:27:18.000Z","size":25,"stargazers_count":11,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T19:22:54.804Z","etag":null,"topics":["client-side","client-side-routing","javascript","nested-router","reflex-frp","routing"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3noch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-07T02:07:47.000Z","updated_at":"2022-06-07T02:27:21.000Z","dependencies_parsed_at":"2022-09-15T11:21:38.238Z","dependency_job_id":null,"html_url":"https://github.com/3noch/reflex-dom-nested-routing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Freflex-dom-nested-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Freflex-dom-nested-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Freflex-dom-nested-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Freflex-dom-nested-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3noch","download_url":"https://codeload.github.com/3noch/reflex-dom-nested-routing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244250274,"owners_count":20423125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-side","client-side-routing","javascript","nested-router","reflex-frp","routing"],"created_at":"2024-10-10T23:42:22.435Z","updated_at":"2025-03-22T23:32:17.663Z","avatar_url":"https://github.com/3noch.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nested Routing for Reflex-DOM\n\n[![Haskell Programming Language](https://img.shields.io/badge/language-Haskell-blue.svg)](http://www.haskell.org)\n[![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)](https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29)\n\nExample:\n\n```haskell\napp = runRouteWithPathInFragment $ do\n  switchPromptly never \u003c=\u003c withRoute $ \\route -\u003e case fromMaybe \"\" route of\n    \"\"         -\u003e ([\"users\"] \u003c$) \u003c$\u003e buttonClick \"Open users\"\n    \"users\"    -\u003e users\n    \"test\"     -\u003e codeToRun \u003e\u003e pure never\n    \"settings\" -\u003e text \"Settings\" \u003e\u003e pure never\n    _          -\u003e redirectLocally []\n```\n\n`RouteWriter` can make plumbing easer:\n\n\n```haskell\napp = runRouteWithPathInFragment $ fmap snd $ runRouteWriterT $ do\n  void $ withRoute $ \\route -\u003e case fromMaybe \"\" route of\n    \"\"         -\u003e tellRouteAs [\"users\"] =\u003c\u003c buttonClick \"Open users\"\n    \"users\"    -\u003e users\n    \"test\"     -\u003e codeToRun\n    \"settings\" -\u003e text \"Settings\"\n    _          -\u003e tellRedirectLocally []\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Freflex-dom-nested-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3noch%2Freflex-dom-nested-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Freflex-dom-nested-routing/lists"}