Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Breaking a large template into smaller templates

$
0
0

Hello everyone!

I’ve been adding to a homepage.hbs template and it’s getting too big. I want to break my homepage into different sections like:

  • homepage-dashboard.hbs
  • homepage-sidebar.hbs
  • homepage-footer.hbs

I’ve created these files, stuck them in the templates folder, and referred to them in the parent template, homepage.hbs, but they aren’t showing up. How can I register these new template files so I can use them inside of the original homepage.hbs template?

Context:

I am using ember 2.14 and not using ember-cli, so none of the ember generate commands will work for me. I would need to know how ember recognizes new templates that I create.

Thank you so much for the help!!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles