You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello~ First thanks a lot for sablono, it is an awesome library.
I have tried to use the ^:inline metadata to get read of the interpret calls in the code emitted by sablono. It seems that it does not work in all cases though. I have made a dummy project to illustrate the issue, but here is the gist of it:
(ns sablono-bug.core
(:require [sablono.core :as sablono]))
(defn my-react-component
"Dummy function that returns a react component"
[]
(sablono/html [:span "plop"]))
(def a
"Here, inlining works just fine"
(sablono/html [:div
{}
^:inline (my-react-component)]))
(def b
"Here it does not work"
(sablono/html [:div
^:inline (my-react-component)]))
Hello~ First thanks a lot for sablono, it is an awesome library.
I have tried to use the
^:inline
metadata to get read of theinterpret
calls in the code emitted by sablono. It seems that it does not work in all cases though. I have made a dummy project to illustrate the issue, but here is the gist of it:Case
a
compiles to the following js:Case
b
compiles to the following js (indented for clarity):I have not had the time to dive in the code yet, but maybe you have an idea why it does not work in case
b
?The text was updated successfully, but these errors were encountered: