Skip to content

Latest commit

 

History

History
104 lines (63 loc) · 1.93 KB

API.md

File metadata and controls

104 lines (63 loc) · 1.93 KB

thoughts.api

clean

(clean opts)

Removes cache and output directories
source

new

(new opts)

Creates new file in posts dir.
source

refresh-templates

(refresh-templates opts)

Updates to latest default templates
source

render

(render opts)

Renders posts declared in posts.edn to out-dir.
source

serve

(serve opts)
(serve opts block?)

Runs file-server on port.
source

thoughts

(thoughts opts)

Alias for render
source

watch

(watch opts)

Watches posts, templates, and assets for changes. Runs file server using serve.
source

thoughts.cli

-main

(-main & args)

source

dispatch

(dispatch)
(dispatch default-opts & args)

source

run

(run default-opts)

Meant to be called using clj -M:thoughts; see Quickstart > Clojure in README
source