Clojure wrapper for ph-css
(use 'clj-ph-css.core)
(def schema
(string->schema "foo bar {baz:zaz}"))
;; => #'clj-ph-css.core/schema
schema
;; =>
;; [{:selectors
;; [{:members
;; [{:value "foo" :group :type :type :member-simple}
;; {:name " " :type :selector-combinator}
;; {:value "bar" :group :type :type :member-simple}]
;; :type :selector}]
;; :declarations
;; [{:property "baz"
;; :expression "zaz"
;; :important? false
;; :type :declaration}]
;; :type :style-rule}]
(schema->string schema)
;;=> "foo bar{baz:zaz}"