Tie.js
Licensed under the EUPL V.1.1
Node.js
var cheerio = ;var tie = tie;var html = '<table>\n' +' <thead>\n' +' <tr>\n' +' <th>Date</th>\n' +' <th>Activity</th>\n' +' <th>Comment</th>\n' + ' <th>Name</th>\n' +' </tr>\n' +' </thead>\n' +' <tbody class="activities">\n' +' <tr>\n' +' <td class="date"></td>\n' +' <td class="activity"></td>\n' +' <td class="comment"></td>\n' +' <td class="name"></td>\n' +' </tr>\n' +' </tbody>\n' +'</table>' var data = activities: date: '2011-08-23' activity: 'Jogging' comment: 'Early morning run' name: 'Harry Potter' date: '2011-09-13' activity: 'Gym' comment: 'Chest workout' name: 'Batman' ; var $ = cheerioconsole
Browser
Be sure to include jQuery or Zepto before Tie
HTML
Date Activity Comment Name
Javascript
var data = activities: date: '2011-08-23' activity: 'Jogging' comment: 'Early morning run' name: 'Harry Potter' date: '2011-09-13' activity: 'Gym' comment: 'Chest workout' name: 'Batman' ;