Skip to content

Uses placekitten website to retrieve placeholders which you can use on your webiste

Notifications You must be signed in to change notification settings

palin/kittenholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kittenholder

Uses placekitten.com website to generate placeholders which you can use on your website

Installation:

In your Gemfile add: gem 'kittenholder'

In bash console run: bundle install

Usage examples:

In rails views:

1 Image width 200, height 300, black and white

<%= image_tag(kittenholder(200, 300, true)), alt: 'image' %>

-> HTML Output:

<img src="https://placekitten.com/g/200/300", alt="image">
  1. Image (width 500, height 600, color)
<%= image_tag(kittenholder(500, 600)), alt: 'image' %>

-> HTML Output:

<img src="https://placekitten.com/500/600", alt="image">
  1. Default image (width 100, height 100, color)
<%= image_tag(kittenholder), alt: 'image' %>

-> HTML Output:

<img src="https://placekitten.com/100/100", alt="image">

About

Uses placekitten website to retrieve placeholders which you can use on your webiste

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages