Using Yeoman Ember Generator , I tried to create a new block component, e.g:
//directory: template/components/test-component.hbs
Test-component's content: <div>{{yield}}</div>
And to be called in application template:
//directory: template/application.hbs
<div id="application_content">
{{#test-component}}yield content{{/test-component}}
</div>
The weird thing is when its compiled using grunt and handlebars runtime, it produce an error says:
Uncaught #<error>
But when I tried to not use handlebars runtime and instead move all templates to be inline in index.html, it works fine.
So does Handlebars runtime does not support components? Or are there any other way to fix this?