Liking cljdoc? Tell your friends :D

hara.code.framework.cache


+cache-dir+clj


+cache-suffix+clj


+currentclj


+init-cache+clj


+status+clj


fetchclj

(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
raw docstring

initclj

(init)
(init current cache-dir)

initialises the cache with results from .code.cache

initialises the cache with results from .code.cache
raw docstring

prepare-inclj

(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)
raw docstring

prepare-outclj

(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)"}}}}
raw docstring

purgeclj

(purge)
(purge current)

clears the cache

clears the cache
raw docstring

updateclj

(update ns data)
(update ns data current cache-dir cache-suffix)

updates values to the cache

updates values to the cache
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close