This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-10
Channels
- # babashka (17)
- # beginners (57)
- # calva (19)
- # cider (1)
- # clj-kondo (21)
- # clojure (36)
- # clojure-austin (15)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (35)
- # clojure-filipino (1)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (2)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-sg (1)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (3)
- # clojurescript (7)
- # clr (9)
- # community-development (5)
- # cursive (14)
- # datalevin (1)
- # emacs (5)
- # events (5)
- # exercism (2)
- # figwheel-main (2)
- # fulcro (6)
- # funcool (3)
- # introduce-yourself (2)
- # joyride (7)
- # leiningen (4)
- # london-clojurians (9)
- # malli (3)
- # membrane (1)
- # missionary (54)
- # music (1)
- # nbb (2)
- # pathom (5)
- # pedestal (55)
- # rdf (13)
- # re-frame (10)
- # reitit (3)
- # shadow-cljs (17)
- # vim (58)
- # web-security (12)
Any suggestions on what to use for "templating" – I would need to generate files from a given template, applying contents from an env – so basically something Django, Jinja2 etc do, but for non-html -stuff
https://github.com/yogthos/Selmer is used mostly for html but it supports any text
Thanks for the tip!
Oh, good to know!
For very simple string interpolation with Clojure (a la Python's fstrings) there's also clojure.core.strint/<<
https://github.com/clojure/core.incubator/blob/master/src/main/clojure/clojure/core/strint.clj#L49-L76 , which I've found interesting but unappreciated
Why not 🙂
Well, sure, format is very handy but the semantics are slightly different (compared to strint/<<
, which can "absorb" the transformations)
That's what i've been mostly using for basic stuff
can one use camel-snake-kebab easily with bb? I know there must be docs on that but since you're here I might as well ask 😄
@U32ST9GR5 Yes, if you add this dependency in bb.edn
(similar to how you use deps.edn
)
{:deps {..}}
or..?
Thanks!