DannyBen / sasstool

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Ruby 100.0%