Skip to content

DannyBen/sasstool

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sasstool

Gem Version Build Status Maintainability


Sass (SassC) command line renderer with globbing import support.


Installation

$ gem install sasstool

Usage

You can use Sasstool from the command line, or from within ruby code.

Rendering from the command line

$ sasstool --help
sasstool - SASS Command Line Renderer

Usage:
  sasstool INFILE [OUTDIR --watch]
  sasstool (-h|--help)

Options:
  -w, --watch
    Watch the directory of the input file, and save on change

  -h --help
    Show this help

Parameters:
  INFILE
    Path to SCSS or SASS input file

  OUTDIR
    Path to CSS output directory. Can also be provided by an environment
    variable

Environment Variables:
  SASSTOOL_OUTDIR
    Path to CSS output directory

Examples:
  sasstool style/main.scss public/css

Rendering from Ruby code

sass = Sasstool::Renderer.new 'path/to/main.scss'

# Get the CSS string
sass.render

# Get the source map string
sass.source_map

# Save both CSS and source map
sass.save 'target/directory'

Contributing / Support

If you experience any issue, have a question or a suggestion, or if you wish to contribute, feel free to open an issue.


About

Sass (SassC) command line renderer with globbing import support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages