(fetch ns file-path)
(fetch ns file-path current cache-dir)
reads a the file or gets it from cache
(fetch 'code.manage "src/code/manage.clj") => (any map? nil?)
reads a the file or gets it from cache (fetch 'code.manage "src/code/manage.clj") => (any map? nil?)
(file-modified? ns file-path)
(file-modified? ns file-path current cache-dir)
checks if code file has been modified from the cache
(file-modified? 'code.manage "src/code/manage.clj") => boolean?
checks if code file has been modified from the cache (file-modified? 'code.manage "src/code/manage.clj") => boolean?
(init-memory!)
(init-memory! current cache-dir)
initialises memory with cache files
initialises memory with cache files
(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 file-path data)
(update ns file-path 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