Skip to content

minad/rack-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack::Embed

Rack::Embed embeds small images via the data-url (base64) if the browser supports it. This reduces http traffic.

Installation

gem sources -a http://gemcutter.org
gem install rack-embed

Usage

Add the following line to your rackup file:

use Rack::Embed, :max_size => 1024

About

Rack middleware which embeds small images as base64 data-url in css/html files if the browser supports it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages