JustinLove/elm-twitch-api/6.0.0

NOTE: the latest version is 7.0.0

Twitch.Template

Helpers for filling in image and url templates received from API responses.

imageTemplateUrl : Int -> Int -> String -> String

Fills in templates with {width} and {height}.

Twitch.Template.imageTemplateUrl 168 95 stream.thumbnailUrl
imagePercentTemplateUrl : Int -> Int -> String -> String

Fills in templates with %{width} and %{height}.

Twitch.Template.imagePercentTemplateUrl 320 180 video.thumbnailUrl