Answer the question
In order to leave comments, you need to log in
How to output .hbs templates from folders to index.html?
I've been scratching my head all day but still can't find the answer!
I'm trying to write a mini blog. There is an option to store everything in the index in scripts, but this is some kind of squalor!
I read, googled, and found a way to break the layout into handlebars templates. Made the folder structure. OK.
But I just can’t understand, but how to display the templates I need in index.html?
Could you post a code example of how this is done?
Answer the question
In order to leave comments, you need to log in
Use Ember CLI, then when generating a route, a template with the same name will be automatically created, and it will be loaded.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question