layout.js 227 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 /** * Module dependencies. */ var pug = require('../') , path = __dirname + '/layout.pug' , str = require('fs').readFileSync(path, 'utf8') , fn = pug.compile(str, { filename: path, pretty: true }); console.log(fn());