sindresorhus / gulp-template

Render/precompile Lodash templates
MIT License
289 stars 77 forks source link

Update index.js #16

Closed evanboho closed 10 years ago

evanboho commented 10 years ago

I was running into a bug where templates were not processing, throwing the error "TypeError: First argument needs to be a number, array or string at new Buffer."

By moving the parens around, I got it to work.

sindresorhus commented 10 years ago

That's definitely not it.

Can you put this above the line and let me know the output in the terminal:

console.log(file.contents.toString(), data, options);
jeremypeter commented 10 years ago

@evanboho I know would get this error if data was undefined.

sindresorhus commented 10 years ago

fixed in 1.1.1

evanboho commented 10 years ago

Many thanks!