code: function stdin() {
    var buf = '';
    process.stdin.setEncoding('utf8');
    process.stdin.on('data', function(chunk){ buf += chunk; });
    process.stdin.on('end', function(){
      var output;
      if (options.client) {
        output = pug.compileClient(buf, options);
      } else {
        var fn = pug.compile(buf, options);
        var output = fn(options);
      }
      process.stdout.write(output);
    }).resume();
  }
docs: Compile from stdin.