media_tag
Creates the suitable HTML tag for a specified media object.
Parameters
media{Object}: The media object.image_size{String}: The size of the media poster image in pixels.returns{String}: The appropriate HTML tag.
Usage
{{#each product.media as |media|}}
{{ media_tag media }}
{{/each}}
Example
{{#each product.media as |media|}}
{{ media_tag media }}
{{/each}}
Was this article helpful to you?