(f-string s
{:keys [tag-open tag-close] :or {tag-open "{" tag-close "}"} :as ctx})
Python-like f-string
Example:
(f-string "Hello, {name}!" {:name "world"})
;; => "Hello, world!"
Specify custom template tag delimeters with :tag-open
and :tag-close
Example:
(f-string "{:foo {{x}}}"
{:x "bar"
:tag-open "{{"
:tag-close "}}"})
;; => "{:foo bar}"
Python-like f-string Example: ```clojure (f-string "Hello, {name}!" {:name "world"}) ;; => "Hello, world!" ``` Specify custom template tag delimeters with `:tag-open` and `:tag-close` Example: ```clojure (f-string "{:foo {{x}}}" {:x "bar" :tag-open "{{" :tag-close "}}"}) ;; => "{:foo bar}" ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close