<reponame>Joe606/weibo_post<filename>myapp/node_modules/pug/examples/each.js<gh_stars>0
/**
 * Module dependencies.
 */

var pug = require('../')
  , path = __dirname + '/each.pug'
  , str = require('fs').readFileSync(path, 'utf8')
  , fn = pug.compile(str, { filename: path, pretty: true });

var users = {
  tj: { age: 23, email: 'ychag@example.com', isA: 'human' },
  tobi: { age: 1, email: 'kenaa@example.com', isA: 'ferret' }
};

console.log(fn({ users: users }));