tvos-jade

1.0.2 • Public • Published

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"})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i tvos-jade

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • jamesmartin