This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-13
Channels
- # adventofcode (51)
- # announcements (1)
- # babashka (7)
- # beginners (45)
- # berlin (2)
- # bristol-clojurians (1)
- # calva (38)
- # cider (2)
- # clara (25)
- # clj-kondo (2)
- # cljs-dev (25)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (6)
- # clojure-europe (5)
- # clojure-nl (1)
- # clojure-spec (15)
- # clojure-uk (93)
- # clojurescript (29)
- # clojutre (2)
- # core-async (78)
- # cursive (24)
- # datomic (29)
- # figwheel-main (1)
- # fulcro (50)
- # hugsql (1)
- # hyperfiddle (1)
- # luminus (1)
- # malli (26)
- # off-topic (40)
- # portkey (12)
- # reagent (22)
- # ring-swagger (1)
- # shadow-cljs (56)
- # spacemacs (24)
- # tools-deps (68)
here's what i've got so far: https://github.com/borkdude/babashka/issues/138#issuecomment-562260963
Babashka v0.0.41 Support for --classpath and --main: https://github.com/borkdude/babashka/#classpath
List outdated dependencies using babashka and clojure: https://github.com/borkdude/babashka#list-outdated-maven-dependencies
coolio, this seems to work:
$ rlwrap ./bb
Babashka v0.0.42-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[clojure.data.xml :as xml] )
nil
user=> (xml/parse-str "<item></item>")
#xml/element{:tag :item}
user=> (def xml (xml/parse-str "<item></item>"))
#'user/xml
user=> (xml/emit-str (assoc xml :content [(xml/element :child {})]))
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><item><child/></item>"
i guess that's on the clojure.data.xml branch:
$ ./bb
Babashka v0.0.42-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[clojure.data.xml :as cdx])
nil
user=> (cdx/parse-str "<item>smile</item>")
#xml/element{:tag :item, :content ["smile"]}
user=> (def xml (cdx/parse-str "<item>smile</item>"))
#'user/xml
user=> (cdx/emit-str (assoc xml :content [(cdx/element :kid {})]))
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><item><kid/></item>"
user=> (cdx/emit-str xml)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><item>smile</item>"