pixsy/node_modules/pug/examples/whitespace.js

11 lines
231 B
JavaScript

/**
* Module dependencies.
*/
var pug = require('../')
, path = __dirname + '/whitespace.pug'
, str = require('fs').readFileSync(path, 'utf8')
, fn = pug.compile(str, { filename: path, pretty: true });
console.log(fn());