SlexAxton/require-handlebars-plugin — pull request #61 by peol (2012-10-08 13:11:50+00:00)
Title: Make sure to remove BOM from file on compile

Whenever hbs is creating pre-compiled templates, we need to make sure the BOM (UTF-8 header) is removed or it'll create weird strings in templates that pushes content around.

This will also fix edge-cases were readFileSync will not return a string if file wasn't found.

See https://github.com/joyent/node/issues/1918 for the work-around used.