Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (33 sloc) 0.966 kb

Sass

Clojure bindings for the Ruby Sass compiler

WARNING

This should only be used as a development dependency. This library depends on JRuby, which means you would too.

Installation

Add this to your project.clj

[sass "3.2.6"]

Usage

To render a file

; using default options
(render-file-path "public/test.scss")

; with options
(render-file-path "public/test.scss" :property-syntax :new :style :compressed)

To render a resource

; using default options
(render-resource-path "test.scss")

; with options
(render-resource-path "test.scss" :load-paths ["src/stylesheets"])

Rendering a string

; using default options
(render-string "$blue: #3bbfce; .content-navigation { border-color: $blue; }")
; ".content-navigation{border-color:#3bbfce}"

; with options
(render-string "$blue: #3bbfce; .content-navigation { border-color: $blue; }" :style :compressed :syntax :scss)
Jump to Line
Something went wrong with that request. Please try again.