error_test.js 237 B

123456789101112
  1. var fs = require("fs");
  2. var hbsfy = require("hbsfy");
  3. var templatePath = __dirname + "/error.hbs";
  4. fs.createReadStream(templatePath)
  5. .pipe(hbsfy(templatePath))
  6. .on('error', function () {
  7. // Error handled, so we will not crash.
  8. });