Liking cljdoc? Tell your friends :D

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

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close