I’m trying to understand EmberJS template convention in Discourse.
Here’s a snippet from app/assets/javascripts/discourse/templates/discovery/categories.hbs
{{#discovery-categories refresh="refresh"}}
{{component controller.categoryPageStyle
categories=model.categories
latestTopicOnly=controller.latestTopicOnly
topics=model.topics}}
{{!-- my-template --}}
{{/discovery-categories}}
What is the meaning of discovery-categories
and component
?
For example I want to insert my-template
to extend categories.hbs
, what is the convention I should use to create file with template?