Using placeholder images

How to use placeholder images in snippets.

Ever had the need to use a placeholder image until you get time to put a real image in place? Of course you have!

Here is how we do it ….

{{ '230x200' | placeholder: 'No image', '2e2850', 'ffffff' }}

All we are doing here is saying that we want a 230px x 200px placeholder image with the text “No image” with the background colour #2e2850 and the foreground colour white. The specs for the filter can be found right here

by Craig Sullivan

28 Mar 2012