tmeasday / meteor-router

MIT License
366 stars 76 forks source link

Broken {{renderPage}} #110

Closed ilsenem closed 11 years ago

ilsenem commented 11 years ago

{{renderPage}} helper get Object {hash: {}} as name argument when called without options and unable to return correct template name.

If renderPage used with string argument like {{renderPage 'test'}} then test template is rendered. When both argument and parameters passed {{renderPage 'test' foo='bar'}} then name would be test and options is {hash: {foo: "bar"}}.

P.S. Previous version of this code works fine with _.isString check.

tmeasday commented 11 years ago

You're right. I reverted the previous commit. Not quite sure why I changed it in the first place.