Interested in sponsoring this lovely little spot?

is_video

A boolean for whether the asset is an video.

{{ if is_video }}
<video controls>
<source src="{{ url }}" type="video/mp4">
Sorry, your browser doesn't support embedded videos.
</video>
{{ else }}
<a href="{{ url }}">Download</a>
{{ /if }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →