D
D
Dima Pautov2015-10-14 21:45:43
Ember.js
Dima Pautov, 2015-10-14 21:45:43

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

1 answer(s)
A
Abdulla Mursalov, 2015-10-15
@amaprograma

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 question

Ask a Question

731 491 924 answers to any question