This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-25
Channels
- # aleph (2)
- # aws (2)
- # beginners (37)
- # boot (23)
- # cider (29)
- # clara (34)
- # cljs-dev (2)
- # cljsrn (17)
- # clojure (230)
- # clojure-dev (47)
- # clojure-italy (11)
- # clojure-nl (2)
- # clojure-poland (5)
- # clojure-russia (52)
- # clojure-sg (1)
- # clojure-spec (70)
- # clojure-uk (73)
- # clojurescript (31)
- # core-async (9)
- # cursive (15)
- # datomic (39)
- # events (1)
- # graphql (1)
- # lein-figwheel (2)
- # luminus (13)
- # off-topic (2)
- # onyx (29)
- # other-lisps (1)
- # parinfer (15)
- # pedestal (14)
- # re-frame (41)
- # reagent (24)
- # ring (4)
- # ring-swagger (12)
- # rum (1)
- # spacemacs (3)
- # specter (1)
- # test-check (13)
- # timbre (9)
- # unrepl (29)
- # vim (5)
In examples I see the a form's values being set with name="item1" value={{item1}}'
but what if I wanted to set the value programmatically? like name="item{{forloop.counter}} value={{str "item" forloop.counter}}
I am about to just hard code the table and be done with it but I have a feeling there is a better way
you should be able to do name="item{{forloop.counter}} value="item-{{forloop.counter}}"
@yogthos will value="item-{{forloop.counter}}"
result in the value :item1 or "item1" I assumed it would be the latter.
Probably a noob question, but I’ve been stuck on this for a while: I build my application using lein uberjar. I’m able to run my application (java -Xms400m -Xmx400m -jar voetbalhelden.admin.jar) but when I try to open the login page I get the following error (in the logs): ERROR admin.middleware - #error { :cause JAR entry templates//login.html not found in /home/jan/Source/sports-club/admin/target/uberjar/voetbalhelden.admin.jar :via [{:type java.io.FileNotFoundException :message JAR entry templates//login.html not found in /home/jan/Source/sports-club/admin/target/uberjar/voetbalhelden.admin.jar :at [sun.net.www.protocol.jar.JarURLConnection connect JarURLConnection.java 142]}]
Any thoughts?
Which path would that be? Going to the root URL of my application should redirect to the login page (which it does correctly) http://127.0.0.1:6430/login
The // is indeed quite odd, but I have no idea where it’s coming from
@yogthos I found the cause of the “//“: I used (layout/render “/login.html”) instead of (layout/render “login.html”) in the route handler. This wasn’t causing any trouble in dev mode, but apparently it does when deploying it. Thanks for pointing me in the right direction 🙂