{{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.
{{renderPage}}
helper getObject {hash: {}}
asname
argument when called without options and unable to return correct template name.If
renderPage
used with string argument like{{renderPage 'test'}}
thentest
template is rendered. When both argument and parameters passed{{renderPage 'test' foo='bar'}}
then name would betest
andoptions
is{hash: {foo: "bar"}}
.P.S. Previous version of this code works fine with
_.isString
check.