jonschlinkert / expand

Recursively resolve templates in an object, string or array.
MIT License
8 stars 3 forks source link

bug; boolean value false not resolved in template. Solved. #5

Closed peanutpi closed 8 years ago

peanutpi commented 8 years ago

Bug :

In case data has a key which value is boolean false, in that case it'll not resolve the template.

Template : <%= a %> Data : {a: false} Expected Result : false Actual Result : <%= a %>

p.s. It was working for boolean data true

jonschlinkert commented 8 years ago

if you could make the requested change that would be great. everything else looks good, I really appreciate it, thank you!

jonschlinkert commented 8 years ago

thank you! and sorry it took so long to merge. Published to npm and git tagged as 0.4.2