Skip to content

Write TVML templates in Pug (Formerly Jade) and wrap them in Javascript functions for use in a TVOS application

Notifications You must be signed in to change notification settings

jamesmartin/tvos-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tvos-pug

Write TVML templates in Pug (formerly know as Jade) and wrap them in Javascript functions for use in a TVOS application

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

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

Install

npm install tvos-pug

Use

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


var tvOSPug = require('tvos-pug');

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

About

Write TVML templates in Pug (Formerly Jade) and wrap them in Javascript functions for use in a TVOS application

Resources

Stars

Watchers

Forks

Packages

No packages published