No commit activity in last 3 years
No release in over 3 years
This gem provides integration of embedding images and fonts as base64 into CSS files within the Rails asset pipeline. More about embedding assets and how it works, see the [jammit documentation][1]. This gem actually reuses code from that project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.1.0.rc4
~> 3.1.0.rc4
 Project Readme

Embedding Assets

This gem provides integration of embedding images and fonts into CSS files within the Rails asset pipeline. More about embedding assets and how it works, see the jammit documentation. This gem actually reuses code from that project.

Installing

Add the following to your Gemfile:

gem 'embed-assets-rails'

Configuration

To enable embedding the assets set config.assets.embed_assets to true.

Example

MyProject::Application.configure do
  config.assets.embed_assets = true
end

Notes

  • Rails 3.1 and up only
  • Only supports images and font in public/ directory (yet)

Thanks

Thanks to documentcloud for creating jammit.

Running Tests

$ bundle install
$ bundle exec rake test