Fork me on GitHub
#reveal
<
2022-01-31
>
chromalchemy16:01:29

Complements on the Vega stuff. Looks really cool!

chromalchemy16:01:18

Can Reveal render hiccup html? Even if very basic.. What is the best way to approach this?

vlaaad22:01:33

@chromalchemy there is nothing specific for hiccup, but you can use cljfx's web view to render hiccup:

(require '[hiccup.core :as h]
         '[cljfx.ext.web-view :as ext.web-view])

#reveal/inspect {:fx/type ext.web-view/with-engine-props
                 :props {:content (h/html [:ul
                                           (for [x (range 1 4)]
                                             [:li x])])}
                 :desc {:fx/type :web-view}}

vlaaad22:01:28

note that JavaFX's web view is a fork of webkit, so YMMV