Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 760 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 760 Bytes

clj-ph-css

Clojure wrapper for ph-css

Clojars Project

Quickstart Tutorial

(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}"