Image, asset and currency filters
- With image_url, you get the URL of an image at the
widthandheightyou give, with an optionalcrop. - With image_tag, a
srcsetis added from the width of the URL or fromwidths. Thealtattribute is always added. Setwidth,heightorsrcsettonilto remove it. All attribute values are escaped. - With inline_asset_content, the content of a
.svg,.jsor.cssasset smaller than 15 KB is printed. - With money_with_currency, the price is printed with the currency code, for example
$10 USD. - When the value is not a number, nothing is printed by
money. A missing text or URL is accepted bylink_to. - You can pass a color object to
color_brightnessandbrightness_difference. - Filters on the lines after the first line inside
{{ }}are now applied.