Skip to content

Commit

Permalink
Move a commonly-used function into a utility namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
respatialized committed Sep 15, 2024
1 parent ff70708 commit ba7a8f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev/site/fabricate/dev/build/utils.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(ns site.fabricate.dev.build.utils
"Page-building utility functions"
(:require [site.fabricate.adorn :refer [clj->hiccup]]
[zprint.core :as zp]))

(defn expr->hiccup
[form]
(clj->hiccup (zp/zprint-str form
{:style [:community :justified]
:map {:comma? false :sort? false}})))

0 comments on commit ba7a8f5

Please sign in to comment.