UNPKG

tabby

Version:

create tabbed web apps with progressive enhancement

20 lines (18 loc) 499 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 }, '.owner': { href: row.owner.link, _text: row.owner.name }, '.location': row.location }; }); };