1.0.2 • Published 8 years ago

tvos-jade v1.0.2

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

tvos-jade

Write TVML templates in Jade and wrap them in Javascript functions for use in a TVOS application

Entirely motivated by ground-breaking experiments on jade-tvml by @2metres.

One man's hatred of XML can make a difference.

Install

npm install tvos-jade

Use

// Assume a directory structure like this:
// .
// this_file.js
// templates/
//  Index.xml.js.jade
//  Other.xml.js.jade


var tvOsJade = require('tvos-jade');

var tvml = tvOsJade.renderTemplate('Index.xml.js', {"some": "locals"})
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago