This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-09
Channels
- # announcements (6)
- # babashka (17)
- # beginners (70)
- # calva (6)
- # chlorine-clover (88)
- # cider (9)
- # cljs-dev (9)
- # clojure (66)
- # clojure-australia (3)
- # clojure-czech (5)
- # clojure-europe (73)
- # clojure-nl (5)
- # clojure-spec (62)
- # clojure-uk (38)
- # clojurescript (30)
- # cursive (10)
- # datomic (16)
- # events (1)
- # figwheel-main (1)
- # fulcro (6)
- # graphql (21)
- # helix (4)
- # jackdaw (1)
- # jobs-rus (1)
- # kaocha (3)
- # luminus (11)
- # malli (28)
- # pedestal (3)
- # re-frame (2)
- # reagent (3)
- # sci (2)
- # shadow-cljs (21)
- # spacemacs (2)
- # sql (25)
- # timbre (2)
- # tools-deps (9)
- # tree-sitter (1)
- # xtdb (21)
If you prefer a "HTML file":
- Be sure that resources
is in your :paths
on deps.edn
- Add a ::http/resource-path "public"
(do not remove file-path
!!! )
- create resources/public/index.html
with your HTML
- You will not need my-spa
handler function nor routes change
- Connect to localhost:8080/index.html
Does anyone know why it's necessary to use a var
to reference your routes when setting up pedestal in order for changes to the routes to be picked up properly? Example of var being used here: https://github.com/pedestal/samples/blob/caaf04afe255586f8f4e1235deeb0c1904179355/auto-reload-server/dev/dev.clj#L12
@dannyfreeman because otherwise, the current value of the routes gets baked into the service-map