From b83b814e55f3fbda86449dfef8d8ca9ac6ec1a26 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 16 May 2020 15:42:33 +0200 Subject: [PATCH] doc --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 0144e96c..0fd2e830 100644 --- a/README.md +++ b/README.md @@ -557,6 +557,19 @@ namespace which allows dynamically adding to the classpath. See [deps.clj](doc/deps.clj.md) for a babashka script that replaces the `clojure` bash script. +## Data readers + +Data readers can be enabled by setting `*data-readers*` to a hashmap of symbols +to functions or vars: + +``` clojure +$ bb "(set! *data-readers* {'t/tag inc}) #t/tag 1" +2 +``` + +To preserve good startup time, babashka does not scan the classpath for +`data_readers.clj` files. + ## Uberscript The `--uberscript` option collects the expressions in