Sha256: 0af902136ce328104d147dd537aa7cfd9cb3340a09021a37d36e53f46c45fb0c

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

# Rack::CoffeeFilter

Watches for .coffee requests and tries to compile down to javascript. It will only try to compile HTTP 2xx responses; everything else just gets passed along. It doesn't check to see if the file is actually coffeescript because it's not your mom. It doesn't do caching. Produces bare (unwrapped) javascript by default. Do `use Rack::CoffeeFilter::Filter, false` to wrap.

You might think you want to use this gem. You could be wrong.

## Installation

Add this line to your application's Gemfile:

    gem 'rack-coffee_filter'

## Usage


In your config.ru

    use Rack::CoffeeFilter::Filter
    # if you want to wrap the output in a function
    # use Rack::CoffeeFilter::Filter, true

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-coffee_filter-0.9.0 README.md