Skip to content

Panthevm/clj-ph-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Clojure wrapper for ph-css

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages