jeluard / lucuma

Web Components library for ClojureScript
96 stars 8 forks source link

Extend style definition syntax #15

Closed jeluard closed 10 years ago

jeluard commented 10 years ago

The style key should support multiple style element definition and a way to provide other style attribute (like media or title).

A potential syntax could be:

(defwebcomponent my-component
  :style '({:media "screen"
            :title "My screen style"
            :content "a {background: red;}"}
           {:media "print"
            :title "My print style"
            :content [:a {:background "green"})}
jeluard commented 10 years ago

List syntax is now available for both style and content