This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-05
Channels
- # adventofcode (89)
- # announcements (9)
- # babashka (11)
- # beginners (8)
- # biff (5)
- # calva (4)
- # cherry (121)
- # clara (15)
- # clerk (16)
- # clj-kondo (20)
- # clj-otel (2)
- # cljdoc (20)
- # clojure (84)
- # clojure-austin (1)
- # clojure-bay-area (3)
- # clojure-berlin (1)
- # clojure-czech (2)
- # clojure-europe (59)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-poland (1)
- # clojure-uk (15)
- # cursive (16)
- # datomic (46)
- # events (3)
- # fulcro (85)
- # graalvm (20)
- # hyperfiddle (11)
- # improve-getting-started (1)
- # lsp (7)
- # off-topic (48)
- # overtone (8)
- # podcasts-discuss (4)
- # re-frame (31)
- # releases (1)
- # ring (12)
- # sci (13)
- # shadow-cljs (8)
- # specter (3)
- # squint (26)
- # xtdb (5)
- # yamlscript (6)
I want to create an HTML5 document, which I'd usually do using hiccup.page/html5
.
Thought it was supported with: https://github.com/babashka/babashka/issues/1391, but I'm getting:
^--- Could not locate hiccup/page.bb, hiccup/page.clj or hiccup/page.cljc on classpath.
[hiccup.page :refer [html5]]))
Any plan on supporting this? Thanks.Judging by the PR, it looks like the vars were added so that hiccup.page can be loaded from source (so adding hiccup as a dependency):
$ bb -Sdeps '{:deps {hiccup/hiccup {:mvn/version "2.0.0-RC2"}}}'
user=> (require '[hiccup.page :refer [html5]])
nil
user=> (html5 "abc")
"\n<html>abc</html>"
Hi all! Just found out about
- I like the idea, any known drawback? Is anybody using it currently?
I recommend it for projects that want to get the best performance in bb but still want to use clojure.data.json as a dependency outside of bb or so
the only drawback is that it supports a common ground of all the implementations, so no specifics of any implementation
Ok thanks! I actually just tried in one of ours "cross-platform" projects and it works like a charm (added cheshire and excluded data.json) - thank you!
creature comfort question: when i build a script in bb i will often have the entry point as like (exit (do-the-script)) or whatever