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

var pug = require('../');

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

var fn = pug.compileFile(__dirname + '/dynamicscript.pug');
console.log(fn(locals));
