An open API service indexing awesome lists of open source software.

https://github.com/metaskills/sprockets-blackcoffee

Render CoffeeScript files with the --bare option. Useful for JS spec helpers.
https://github.com/metaskills/sprockets-blackcoffee

Last synced: 6 months ago
JSON representation

Render CoffeeScript files with the --bare option. Useful for JS spec helpers.

Awesome Lists containing this project

README

          

# Sprockets BlackCoffee

Yes, sometimes it may be OK to render your CoffeeScript files using the `--bare` option. Most notably, in test spec helper files under Jasmine.

### Usage

Spec the gem in your Gemfile and bundle install.

```ruby
gem 'sprockets-blackcoffee'
```

The gem resisters a new template that subclasses Tilt's default CoffeeScript template. Except it does one thing, it sets the `--bare` option to true. To use this template, name your files with the `.black_coffee` file extension.