Fork me on GitHub
#biff
<
2024-03-22
>
macrobartfast02:03:06

I’ve just added :class "dark" so that my project has it added to my <html> tag on reload…

(defn base-html
  [{:base/keys [title
                description
                lang
                image
                icon
                url
                canonical
                font-families
                head]}
   & contents]
  [:html
   {:lang lang
    :class "dark"
    :style {:min-height "100%"
            :height "auto"}}
...
in this file ~/.gitlibs/libs/com.biffweb/biff/09ef8cef88cb699c67de124cbb472bbff0142d69/src/com/biffweb/impl/rum.clj which works, but I’m guessing that will be overwritten by a newer version of biff when I create a new project at some point, right?

Jacob O'Bryant02:03:47

yaeh, you definitely don't want to edit that file. Instead you can copy the base-html function into your project and then use that instead of biff/base-html.