Reputation: 25
I've got a partial in templates/layout/ called -header.hbs . In my application.hbs, I put {{partial 'layout/header'}} but when :I run the server it says Uncaught Error: Assertion Failed: Unable to find partial with name 'layout/header'. I am using ember-cli Any ideas?
My application.hbs:
{{partial 'layout/header'}}
<div class="container">
{{outlet}}
</div>
Upvotes: 1
Views: 582
Reputation: 1296
For ember-cli per its documentation partials should be within templates/foo.hbs directory to call a partial in your handlebars use the following code to render the template
{{partial "foo"}}
Upvotes: 0