Project

corgi

0.0
No commit activity in last 3 years
No release in over 3 years
Includes a JS file so that you can have an image tag with empty source, but class corgi with width and height for a place holder corgi image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.4
~> 3.12
 Project Readme

corgi

This gem harnesses placecorgi.com to add the power and finesse of the noble corgi to your demo site where temp content is needed.

Usage

Include the gem in your Gemfile and run bundle install

gem 'corgi'

In your application.js file (assuming Rails 3.1+ using the asset pipeline)

//= require placecorgi

In your html, just add a corgi class to any image you want to replace with a corgi. Make sure you have the width and height attributes set on the element.

<img src="/assets/my-boring-image.png" width="480" height="320" class="corgi" />

If invalid or empty values are set for the dimensions it will default to 300 x 300.

Copyright

Copyright (c) 2012 Mike Calhoun. See LICENSE.txt for further details.