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.
- Host: GitHub
- URL: https://github.com/metaskills/sprockets-blackcoffee
- Owner: metaskills
- License: mit
- Created: 2012-01-12T16:37:07.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-12T17:18:54.000Z (almost 14 years ago)
- Last Synced: 2025-04-26T04:14:34.892Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
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.