Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 667 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 667 Bytes

clj-less

A Clojure library for compiling less files to CSS.

It reuses a rhino context so subsequent compiles are fast.

All calls to clj-less.core/less are synchronized around a single atom, so they are potentially blocking.

Some parts ported from java to clojure from the official Java less compiler: https://github.com/marceloverdijk/lesscss-java

Install

Add the following dependency to your project.clj file:

[clj-less "0.1"]

Example

(use 'clj-less.core)

(less "@color: #4D926F;
       body { background: @color; }")

License

Copyright © 2012 Aaron Iba

Distributed under the Eclipse Public License, the same as Clojure.