pixsy/node_modules/pug/examples/layout.js

11 lines
227 B
JavaScript

/**
* 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());