This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-08
Channels
- # announcements (32)
- # aws (2)
- # babashka (21)
- # beginners (143)
- # cider (3)
- # cljsrn (13)
- # clojure (65)
- # clojure-dev (7)
- # clojure-europe (20)
- # clojure-losangeles (8)
- # clojure-nl (13)
- # clojure-norway (39)
- # clojure-uk (9)
- # clojurescript (39)
- # code-reviews (10)
- # conjure (2)
- # cursive (3)
- # datascript (6)
- # datomic (40)
- # events (5)
- # exercism (23)
- # fulcro (9)
- # funcool (2)
- # girouette (2)
- # graphql (4)
- # helix (8)
- # improve-getting-started (4)
- # integrant (7)
- # introduce-yourself (5)
- # jobs (3)
- # luminus (32)
- # malli (3)
- # off-topic (10)
- # pathom (9)
- # pedestal (4)
- # polylith (25)
- # practicalli (1)
- # re-frame (4)
- # sci (3)
- # shadow-cljs (5)
- # tools-deps (25)
- # vim (31)
- # xtdb (32)
I’m not sure if I should be asking in here or #hiccup but could someone point me in the right direction for using my “/book/new” route with a standard form via hiccup? I’m rather new to web dev in general as far as dealing with a backend so I’m not sure where i’m goofing. https://gist.github.com/v3gal0g/04eeba0fdf38ea573f49c20ee68c7238
• forms will be submited as "url encoded" or "multipart" https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_and_retrieving_form_data I think that a possible tasklist for you • Make ::insert-book handle form params • Make "/book/new" :get method, that returns a HTML via hiccup • Make the form inside hiccup HTML I didn't understand what is comlog
@U2J4FRT2T yeah thats where i’m goofing. making it handle form params. Right now I can give it a json map via curl/Emacs REST client. I was wondering how to go about sending the data from the form as JSON before I start fooling around with reagent, etc. Comlog is just a creative name i’m using for what will later be a dashboard of sorts.
I sort of see my confusion now. My intention is to post and receive json yet I wanted to experiment with just hiccup first before taking the leap.