Skip to content

Commit

Permalink
Load extra.css when available
Browse files Browse the repository at this point in the history
  • Loading branch information
remvee committed Dec 5, 2024
1 parent 9f07fb6 commit aee869f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/nl/jomco/apie/report.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
(defn- with-issues [interactions]
(filter :issues interactions))

(def css-resource "style.css")
(def css-resources ["style.css" "extra.css"])

(defn- interactions-result [interactions]
[:section.result
Expand Down Expand Up @@ -658,7 +658,10 @@
[:head
[:title (report-title base-url)]
[:meta {:charset "UTF-8"}]
[:style (-> css-resource (io/resource) (slurp) (raw-css))]]
[:style (->> css-resources
(map #(some-> % io/resource slurp))
(string/join)
(raw-css))]]
[:body
[:header
[:h1 (report-title base-url)]]
Expand Down

0 comments on commit aee869f

Please sign in to comment.