usage:
add to your Gemfile
gem 'rails-sprite'
bundle install
eg.
image source folder:
app/assets/images/rails_xxx/sprite_sources
image sprite source:
icons/16x16/*.png
icons/32x32/*.png
image sprice to:
app/assets/images/rails_xxx/sprite
config:
simple:
::RailsSprite.sprite(
:root_path => "#{::File.dirname(__FILE__)}/..",
:scope_name => "rails_app_name/",
:recipe_path => "icons/16x16",
:css_class_prefix => "u-icons-16x16-",
:spacing => 10
)
-
Notifications
You must be signed in to change notification settings - Fork 0
License
gialib/rails-sprite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published