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.)
(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.
(make-output-fn {:keys [outfile]
:or {outfile "resources/public/css/compiled/ornament.css"}})
(requires-ornament? f)
Does this Clojure file require the Ornament namespace?
Does this Clojure file require the Ornament namespace?
(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 updatesStart 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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close