Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rack middleware which embeds small images as base64 data-url in css/html files if the browser supports it
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rack add threaded option with timeout to avoid blocking
test add threaded option with timeout to avoid blocking
LICENSE
Manifest.txt initial commit
README.md initial commit
Rakefile initial commit
rack-embed.gemspec initial commit

README.md

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
Something went wrong with that request. Please try again.