Skip to content

mylesmegyesi/sass-clojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sass

Clojure wrapper around jsass, which is a Java wrapper around libsass.

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)

About

Sass for Clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published