ejs icon indicating copy to clipboard operation
ejs copied to clipboard

Update ejs.js

Open enowit opened this issue 11 years ago • 2 comments

identify and remove BOM header.

new function: line = 52

/**

  • Render an EJS file at the given path (easton changed)
  • @param {String} path
  • @param {String} encoding
  • @api private */ function readEJSFile(path, encoding) { var buffer = read(path); if (buffer[0] == 239 && buffer[1] == 187 && buffer[2] == 191) { buffer = buffer.slice(3); } return buffer.toString(encoding); }

enowit avatar Apr 18 '14 03:04 enowit

Is this the same as this rejected PR in express-handlerbars? https://github.com/ericf/express-handlebars/issues/77#issuecomment-54659830

matthewhadley avatar Sep 22 '14 19:09 matthewhadley

I submitted a update, in Apr. but nobody reply.

enowit avatar Sep 23 '14 01:09 enowit