Search code examples
ember.jsember-cli

Nested partial not working


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>

Solution

  • 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"}}