code.doc.executive
all-pages
added in 3.0
(all-pages {:keys [publish]})finds and creates entries for all documents
(-> (all-pages {:publish (config/load “config/code.doc.edn”)}) keys sort vec)
deploy-template
added in 3.0
(deploy-template site params lookup {:keys [root]})copies all assets in the template folder to output
(deploy-template “hara” {:print {:function true}} (all-sites {:root “.”}) {:root “.”})
init-template
added in 3.0
(init-template site params lookup {:keys [root]})initialises template for customisation and deployment
(init-template “spirit” {:write true} (all-sites {:root “.”}) {:root “.”})
load-theme
added in 3.0
(load-theme theme)loads a theme to provide the renderer
(load-theme “bolton”) => (contains {:engine “winterfell”, :resource “theme/bolton”, :copy “assets”, :render map?, :manifest sequential?})
load-var
added in 3.0
(load-var ns var)loads a var, automatically requires and loads the given namespace
(load-var “clojure.core” “apply”) => fn?
render
added in 3.0
(render key {:keys [write full skip], :as params} lookup project)renders .clj file to html
(let project (publish/make-project) lookup (all-pages project) (render ’hara/index {:write false} lookup project)) => (contains {:path string? :updated boolean? :time number?})