Skip to content

MichaelDrogalis/lein-cssgenbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lein-cssgenbuild

A Leiningen plugin to generate stylesheets from cssgen s-expressions.

Installation

Clojars

In your :plugins:

[lein-cssgenbuild "0.2.1"]

cssgen fork

In order to make this plugin work, you must use [cssgen-rule-seq "0.2.8"] instead of normal cssgen until the required code gets merged into the main repository.

Usage

Wrap your rules with a rule-seq macro call:

(ns stylesheets.theme
  (:require [cssgen :refer :all]))

(rule-seq
 (rule "ul.nav, ol"
       :color :black)
 (rule "a"
       :color :red))

Configure cssgenbuild in your project.clj:

  :cssgenbuild {:source-path "path/to/clj-stylesheets/"
                :destination-path "path/to/css/destination/files/"}

Generate CSS files with:

$ lein cssgenbuild once

License

Copyright © 2012 Michael Drogalis

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

About

Leiningen plugin to generate stylesheets from cssgen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published