Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TVML for layout and TVJS for logic. TVML is just an XML schema for Apple TV UIs and TVJS a Javascript framework to present the XML templates loaded with your data.

If you're wanting to stream video you can build a full app with almost no Obj-C/Swift (there's still a small shell, though probably nothing custom needs to be here).

The XML templates are a little odd in that they're JS files (e.g. Index.xml.js) and contain the XML as the return value of a global function called Template.

It seems really straight forward though.



[deleted]


It's a fine use of XML. JSON would be a kludge. The templates look like this:

    <lockup>
      <img src="${this.BASEURL}resources/images/music/music_570_e1.lcr" width="450" height="450" />
      <title class="showTextOnHighlight">Title 1</title>
    </lockup>


I wonder if they're being processed as ES6 Template Strings?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: