Skip to content
Joshua Wolfe edited this page Nov 16, 2016 · 2 revisions

Cssgen is like sass but embedded into clojure. I love sass, but I hate the fact that it’s not
embedded, that means that you have to re-learn a lot of constructions already present in the host language (Ruby in the
case of sass):

  • sass mixin definitions should be Ruby method definition
  • sass mixin inlining should be Ruby’s function call
  • sass @import should be Ruby’s require
  • sass @if should be Ruby’s if, same thing for @for and @while
  • variables and mixin arguments should be Ruby variables
  • etc.

To alleviate the problem, the creators introduced SassScript and arbitrary Ruby expressions evaluation.

Cssgen takes a different approach, you already know all those constructions from clojure, so you use what you know. Cssgen just gives you the semantic constructions and the syntactic sugar needed to make generating CSS easy and enjoyable.

Clone this wiki locally