(fetch ns path)
(fetch ns path current cache-dir)
reads a the file or gets it from cache
reads a the file or gets it from cache
(init)
(init current cache-dir)
initialises the cache with results from .code.cache
initialises the cache with results from .code.cache
(prepare-in data)
prepares input string to code blocks
(-> (prepare-in '{ns {var {:test {:code "(+ 1 2 3)"}}}}) (get-in '[ns var :test :code]) (first) (block/value)) => '(+ 1 2 3)
prepares input string to code blocks (-> (prepare-in '{ns {var {:test {:code "(+ 1 2 3)"}}}}) (get-in '[ns var :test :code]) (first) (block/value)) => '(+ 1 2 3)
(prepare-out data)
prepares code block for output
(prepare-out {'ns {'var {:test {:code [(block/block '(1 2 3))]}}}}) => '{ns {var {:test {:code "(1 2 3)"}}}}
prepares code block for output (prepare-out {'ns {'var {:test {:code [(block/block '(1 2 3))]}}}}) => '{ns {var {:test {:code "(1 2 3)"}}}}
(update ns data)
(update ns data current cache-dir cache-suffix)
updates values to the cache
updates values to the cache
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close