portkey-cloud / portkey

Live-coding the Cloud
144 stars 7 forks source link

Arguments with dashes in the name can't be mapped #27

Closed tatut closed 6 years ago

tatut commented 6 years ago
user> (require '[portkey.core :as pk])
nil
user> (defn foo [some-thing] (str "foo bar " some-thing))
#'user/foo
user> (pk/mount! foo "/foo?st={some-thing}")
(some-thing)
ExceptionInfo Unmapped argument: some-thing  clojure.core/ex-info (core.clj:4725)

Redefining without the dashes, it works:

user> (defn foo [something] (str "foo bar " something))
#'user/foo
user> (pk/mount! foo "/foo?st={something}")
(something)
Zip size 5,6MB