placeholder
Generate an image url from the placehold.it placeholder image service.
Specifications
{{ 'dimensions' | placeholder: text, background_colour='ededed', foreground_colour='9e9e9e', css_class=''
Parameter | Description | Example Values |
---|---|---|
dimensions (required) | The size of the placeholder image | “300x300” |
text | The text to be rendered | “No Image” |
background_colour | The background colour of the generated image | “ededed” |
foreground_colour | The foreground colour of the generated image | “9e9e9e” |
css_class | Any additional css classes you might want applied | “img-responsive” |
Examples
{{ '300x300' | placeholder: 'No Image', 'dd2226', 'ffffff' }}