<commit_before># Guard-Sass

guard-sass compiles your sass (and scss) files automatically when changed.

## Install

You will need to have [guard](http://github.com/guard/guard) to continue, so install it now!.

Install the gem with:

    gem install guard-sass

Add it to your Gemfile:

    gem 'guard-sass'

And finally add a basic setup to your Guardfile with:

    guard init sass


## Usage

```ruby
guard 'sass' do
  watch(%r{^sass/.+\.s[ac]ss})
end
```

Defaults to writing to 'css/' but this can be changed....

```ruby
guard 'sass', :output => 'styles' do
  watch(%r{^sass/.+\.s[ac]ss})
end
```

guard-sass also has a short notation like [guard-coffeescript][gcs], this let's you define 
an input folder (with an optional output folder) and the watcher is defined for you.

```ruby
guard 'sass', :input => 'sass', :output => 'css'
# or
guard 'sass', :input => 'stylesheets'
```


## Options

```ruby
:input => 'sass'                    # Relative path to the input directory
:output => 'css'                    # Relative path to the output directory
:notification => false              # Whether to display notifications after finished,
                                    #  default: true
:load_paths => ['sass/partials']    # Paths for sass to find imported sass files from,
                                    #  default: all directories under current
```


## Contributors

- snappycode (http://github.com/snappycode)
- sauliusg (http://github.com/sauliusg)



[gcs]: http://github.com/netzpirat/guard-coffeescript "guard-coffeescript"<commit_msg>Updated readme about nested directories<commit_after># Guard-Sass

guard-sass compiles your sass (and scss) files automatically when changed.

## Install

You will need to have [guard](http://github.com/guard/guard) to continue, so install it now!.

Install the gem with:

    gem install guard-sass

Add it to your Gemfile:

    gem 'guard-sass'

And finally add a basic setup to your Guardfile with:

    guard init sass


## Usage

```ruby
guard 'sass' do
  watch(%r{^sass/(.+\.s[ac]ss)})
end
```

Defaults to writing to 'css/' but this can be changed by setting the output option

```ruby
guard 'sass', :output => 'styles' do
  watch(%r{^sass/(.+\.s[ac]ss)})
end
```

By default a file such as `sass/forms/buttons.sass` with the above guard file would be
output to `styles/forms/buttons.css` because `forms` would be matched with the parentheses.
This can be disabled by passing `:shallow => true` so that it would be written to
`styles/buttons.css` instead.

guard-sass also has a short notation like [guard-coffeescript][gcs], this let's you define 
an input folder (with an optional output folder) and the watcher is defined for you.

```ruby
guard 'sass', :input => 'sass', :output => 'styles'
# or
guard 'sass', :input => 'stylesheets'
```

These are equivelant to

```ruby
guard 'sass', :output => 'styles' do
  watch %r{^sass/(.+\.s[ac]ss)$}
end

guard 'sass' do
  watch %r{^stylesheets/(.+\.s[ac]ss)$}
end
```


## Options

```ruby
:input => 'sass'                    # Relative path to the input directory
:output => 'css'                    # Relative path to the output directory
:notification => false              # Whether to display notifications after finished,
                                    #  default: true
:shallow => true                    # Whether to output nested directories or just put css
                                    #  directly in output folder, default: false
:load_paths => ['sass/partials']    # Paths for sass to find imported sass files from,
                                    #  default: all directories under current
```


## Contributors

- snappycode (http://github.com/snappycode)
- sauliusg (http://github.com/sauliusg)



[gcs]: http://github.com/netzpirat/guard-coffeescript "guard-coffeescript"
{'fraction_non_alphanumeric': 0.12313335079905685, 'fraction_numerical': 0.0, 'mean_word_length': 2.872210953346856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4681608', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1147, 'n_words': 422}