Sha256: b4f95e03478a9cee977fa3278a0457692a66506afb32bcf52878615655ea035e

Contents?: true

Size: 674 Bytes

Versions: 3

Compression:

Stored size: 674 Bytes

Contents

# Rack Olark
Rack middleware which injects the Olark JavaScript code before the end of the body of any HTML document being sent to the client. Code from rack/google-analytics has been used liberally and expanded/trimmed down where needed. Mucho thanks to Lee Hambley and other cool rack/google-analytics bros.

## Usage

    require 'rack/olark'
    use Rack::Olark, :id => '1234-567-89-0123', :options => 'like', :this => true, :orthis => 45

Options become this line of JavaScript:

    olark.configure('key', value);

Strings are quoted for you, you needn't worry about that.

## Copyright

Copyright (c) 2011 Dan Poggi. License is 2-clause BSD, see LICENSE for details.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-olark-0.0.3 README.md
rack-olark-0.0.2 README.md
rack-olark-0.0.1 README.md