Pngfix::Rails

Easy to use DD_belatedPNG in rails

Installation

Add this line to your application's Gemfile:

gem 'pngfix-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pngfix-rails

Usage

<html>
<head>
  <%= pngfix_tags ".pngfix" %>
</head>

will generate:

<html>
  <head>
  <!--[if lt IE 7]>
    <script src="/assets/pngfix/DD_belatedPNG.js?body=1" type="text/javascript"></script>
    <script type="text/javascript">DD_belatedPNG.fix('.pngfix');</script>
  <![endif]-->
  </head>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request