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
The sablono.core/html macro internally uses sablono.compiler/compile-map-attr and sablono.util/camel-case-keys to convert ClojureScript maps containing CSS attributes to JavaScript maps usable by React, at compile time.
It would be convenient if a similar sablono.core/css macro or some such were created that did the same conversion at compile time by itself, so that style maps could be conveniently be created in other places, and without having to convert ClojureScript map to JavaScript object at every component render:
(css {:font-family "Comic Sans"})
; would expand to #js {:fontFamily "Comic Sans"} at compile time
The text was updated successfully, but these errors were encountered:
The
sablono.core/html
macro internally usessablono.compiler/compile-map-attr
andsablono.util/camel-case-keys
to convert ClojureScript maps containing CSS attributes to JavaScript maps usable by React, at compile time.It would be convenient if a similar
sablono.core/css
macro or some such were created that did the same conversion at compile time by itself, so that style maps could be conveniently be created in other places, and without having to convert ClojureScript map to JavaScript object at every component render:The text was updated successfully, but these errors were encountered: