Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/springmt/rack-favicon_all


https://github.com/springmt/rack-favicon_all

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Rack::FaviconAll
This is a Ruby version of [bayashi/Plack-Middleware-Favicon](https://github.com/bayashi/Plack-Middleware-Favicon)

Generate favicons for IE, FF, Chrome, Safari!

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rack-favicon_all'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-favicon_all

## Usage

In Gemfile

```
gem 'rack-favicon_all'
```

And write in config.ru below

```
require 'rack/favicon_all'
use Rack::FaviconAll, favicon_path: "path/to/favicon.png"
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/rack-favicon_all/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request