I wasn't at your talk. Did you guys see this plugin? http://github.com/sblackstone/auto_sprite
Rex Chung CEO and Founder Ankoder - Video Encoding On Demand http://www.ankoder.com -------------------------------------- Sydney: +61 421 591 943 HK: +852 6901 2682 Twitter: @rexchung @ankoder On Fri, Jan 29, 2010 at 11:19 AM, Dr Nic Williams <dr...@mocra.com> wrote: > That is a cool idea with the :sprite option key. > > On Fri, Jan 29, 2010 at 9:05 AM, Jason Kotchoff > <cornflakesupers...@hotmail.com> wrote: >> >> Here's a sample app using the monkey patch from last nights talk to do >> CSS sprites using the rails image_tag: >> http://github.com/cornflakesuperstar/css_sprites_sample_app >> >> ie. >> <%= image_tag("/images/sprite_icons.png", :sprite => "weather_cloudy") >> %> cloudy<br/> >> outputs html like: >> <img src="/images/transparent.gif" style="background: transparent url(/ >> images/sprite_icons.png) no-repeat scroll 0px >> 66px;" height="16" width="16"> cloudy<br/> >> >> By combining multiple image icons into a single 'sprite' file, you can >> use CSS offsets to render a particular icon and save the http overhead >> of sending lots of small files to the client web browser (refer yahoos >> performance tips: http://developer.yahoo.com/performance/rules.html). >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby or Rails Oceania" group. >> To post to this group, send email to rails-ocea...@googlegroups.com. >> To unsubscribe from this group, send email to >> rails-oceania+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rails-oceania?hl=en. >> > > > > -- > Dr Nic Williams > Mocra - Premier Ruby on Rails Consultants > w - http://mocra.com > twitter - @drnic > skype - nicwilliams > e - dr...@mocra.com > p - +61 412 002 126 or +61 7 3102 3237 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.