toshi0383 / TVMLKitchen

Swifty TVML template manager with or without client-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TVMLKitchen😋🍴 GitHub license Carthage compatible CocoaPods CocoaPods Build Status

TVMLKitchen helps to manage your TVML with or without additional client-server.

Requirements

  • Swift3.0
  • tvOS 9.0+

Use 0.9.6 for Swift2.2.
Swift2.3 is not supported. Feel free to send PR.

What's TVML?

Please refer to Apple's Documentation. It's a markup language which can be used only on tvOS. TVML makes it easy to build awesome apps for tvOS.

Why ?

TVML is easy, but TVJS is not really. With TVMLKitchen, loading a TVML view is in this short.

Kitchen.serve(xmlFile: "Catalog.xml")

You don't have to write any JavaScript code at all!

Kitchen automatically looks for the xmlFile in your Main Bundle, parse it, then finally pushes it to navigationController. Please refer to the Documentation for more information.

Available Features

  • Load TVML from URL.
  • Load TVML from raw XML String.
  • XML syntax validation API
  • Multi UIWindow Support
  • TVML Recipe Protocol

Examples

Installation

Carthage

Put this to your Cartfile,

github "toshi0383/TVMLKitchen"

Follow the instruction in carthage's Getting Started section.

Cocoapods

Add the following to your Podfile

pod 'TVMLKitchen'

References

For implementation details, my slide is available.
TVML + Native = Hybrid

Contribution

Any contribution is welcomed🎉

About

Swifty TVML template manager with or without client-server

License:MIT License


Languages

Language:Swift 87.8%Language:JavaScript 9.7%Language:Ruby 1.1%Language:Objective-C 0.8%Language:Shell 0.6%