site.fabricate.prototype.source.clojure
Namespace
Fabricate namespace defining methods for turning Clojure namespaces into Hiccup documents
Functions
get-ns
- Description
- Get the namespace symbol from a given node. Returns the first namespace.
- Arguments
[node]
forms->hiccup
- Description
- Produce a Hiccup vector from the given forms.
- Arguments
[{:keys [clojure/forms] page-ns :clojure/namespace :as page-map}]
node->map
- Description
- Convert the given rewrite-clj node into a form map.
- Arguments
[n m]
merge-paragraphs
- Description
- Combine the previous Hiccup form with the next Clojure form map
- Arguments
[prev-element next-form]
eval-forms
- Description
- Evaluate the Clojure forms in a parsed file.
- Arguments
[{:keys [clojure/forms] :as input}]
file->forms
- Description
- Generate a sequence of Clojure form maps from the input file.
- Arguments
[clj-file]
normalize-node
- Description
- Return a map representing the 'value' for the given node
- Arguments
[n]
eval-form
- Description
- Evaluate the Clojure form contained in the given map.
- Arguments
[{clojure-form :clojure/form clj-ns :clojure/namespace clj-str :clojure/source :or {clj-ns (ns-name *ns*)} :as unevaluated-form}]
string->forms
- Description
- Generate a sequence of Clojure form maps from the input string.
- Arguments
[clj-str]
Constants
form-map-schema
- Description
- Schema describing a simplified way of storing Clojure forms and their potential results.
- Type
:malli.core/schema