Simon Wicki (Twitter @zwacky)
Front-end guy at JustWatch.com
Twitter: @zwacky
Quick Intro to tvOS
Quick Intro to tvOS
and how they look like
XML Style
Update Available
Get the latest tvOS version
turns into...
more complex templates are possible too...
Architecture
vanilla API requests
function requestApi(url, method, body, cb) {
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status === 200) {
cb(xhr.response);
}
};
xhr.open(method, url);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.setRequestHeader("Accept", 'application/json, */*');
xhr.send(body);
}
forEaching template
${this.cache.popular.items.map(function(title) {
return `
${title.title.replace('&', 'and')}
`;
})}
No.