gorilla

onetom 2020-01-14T07:06:34.000200Z

How can I embed Gorilla-renderable values into Hiccup? Eg:

(html [:h1 (latex-view "...")])
I managed to implement rendering for pure Hiccup values like this:
(require '[gorilla-renderable.core :as render])
(use 'gorilla-repl.html)
(require '[hiccup2.core :refer [html raw]])
(require 'hiccup.util)

(extend-type hiccup.util.RawString
  render/Renderable
  (render [self]
    (render/render (html-view (str self)))))
so the following renders as expected:
(html [:h1 "Test < ing"])
Cross-posted from https://clojurians.zulipchat.com/#narrow/stream/173759-gorilla-repl/topic/Hiccup.20integration/near/185570125