Liking cljdoc? Tell your friends :D

lambdaisland.ornament.watcher

Watch the filesystem for changes, and regenerate the Ornament CSS file

We generally combine this with Figwheel, and let figwheel handle reloading the CLJ files, as well as hot-loading the new CSS in the browser.

For shadow-cljs use build-hooks, see the Ornament README for an example.

Hawk and Glögi are BYO (you need to declare the dependencies yourself.)

Watch the filesystem for changes, and regenerate the Ornament CSS file

We generally combine this with Figwheel, and let figwheel handle reloading the
CLJ files, as well as hot-loading the new CSS in the browser.

For shadow-cljs use build-hooks, see the Ornament README for an example.

Hawk and Glögi are BYO (you need to declare the dependencies yourself.)
raw docstring

debouncedclj

(debounced f delay-ms)

Debounce a function, it will be called at most once every delay-ms milliseconds.

Debounce a function, it will be called at most once every delay-ms
milliseconds.
sourceraw docstring

make-hawk-handlerclj

(make-hawk-handler opts)
source

make-output-fnclj

(make-output-fn {:keys [outfile]
                 :or {outfile "resources/public/css/compiled/ornament.css"}})
source

requires-ornament?clj

(requires-ornament? f)

Does this Clojure file require the Ornament namespace?

Does this Clojure file require the Ornament namespace?
sourceraw docstring

start-watcher!clj

(start-watcher! {:keys [watch-paths] :or {watch-paths ["src"]} :as opts})

Start a watcher which recreates the ornament CSS output file when source namespaces change.

  • :watch-paths The source directories to watch
  • :outfile The CSS file to write to
  • :callback Optional function to call after the CSS updates
Start a watcher which recreates the ornament CSS output file when source
namespaces change.

- `:watch-paths` The source directories to watch
- `:outfile` The CSS file to write to
- `:callback` Optional function to call after the CSS updates
sourceraw docstring

stop-watcher!clj

(stop-watcher! hawk)
source

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

× close