UNPKG

tabby

Version:

create tabbed web apps with progressive enhancement

16 lines (14 loc) 384 B
var hyperspace = require('hyperspace'); var fs = require('fs'); var html = fs.readFileSync(__dirname + '/render.html', 'utf8'); module.exports = function () { return hyperspace(html, function (row) { return { '.name': { href: row.link, _text: row.name }, '.location': row.location }; }); };