Clojure: DSL for CSS

前端 未结 3 1115
长发绾君心
长发绾君心 2021-02-19 18:21

Context

CSS lacks things like variables, functions, etc ...

Clojure is great for writing DSLS.

I\'m currently already using Clojure+Ring+Compojure for

3条回答
  •  面向向阳花
    2021-02-19 18:28

    Looking at http://clojure-libraries.appspot.com/cat/Web+Server+Libraries and http://clojure.org/libraries, there are what it looks like the options are:

    • cssgen - http://github.com/paraseba/cssgen
    • clj-style - https://github.com/rathwell/clj-style
    • neman.css - http://bitbucket.org/ksojat/neman/
    • Gaka - https://github.com/briancarper/gaka

    I haven't used any of them, but it looks like you'll probably get the best results with cssgen or clj-style.

提交回复
热议问题