ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 383 forks source link

Fix partial name with namespace #76

Closed inerte closed 10 years ago

inerte commented 10 years ago

Because namespace assignment was occurring after dir = dir.dir, there was never a dir.namespace. Had to put namespace before dir get its new value.

Also I took the liberty of adding an unit test for this bug fix.

PS: I work at Yahoo.

ericf commented 10 years ago

Thanks for finding this! I merged in just the fix, because adding a test suite is out of the scope of this change.

Published as v1.0.3