pixsy/node_modules/pug/examples/attributes.js

11 lines
245 B
JavaScript
Raw Normal View History

2017-12-22 17:22:08 +00:00
/**
* Module dependencies.
*/
var pug = require('../')
, path = __dirname + '/attributes.pug'
, str = require('fs').readFileSync(path, 'utf8')
, fn = pug.compile(str, { filename: path, pretty: true });
console.log(fn({ name: 'tj' }));