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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request