Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to remove BOM from file on compile #61

Merged
merged 1 commit into from
Oct 8, 2012
Merged

Make sure to remove BOM from file on compile #61

merged 1 commit into from
Oct 8, 2012

Conversation

peol
Copy link
Contributor

@peol peol commented Oct 8, 2012

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 nodejs/node-v0.x-archive#1918 for the work-around used.

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.
@SlexAxton
Copy link
Owner

<3z, thnx

SlexAxton added a commit that referenced this pull request Oct 8, 2012
Make sure to remove BOM from file on compile
@SlexAxton SlexAxton merged commit fd5e800 into SlexAxton:master Oct 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants