Reputation: 107
I am creating an application with Ember, I would ask, how do I create the files .hbs
to be put into folders and then call them up and use them as a template with Ember? I realized that I have to create the file pre-compiled with Handlebars but how do I give it a name, and printing them in view? Thank you very much, sorry for the "simple" question but I can not understand!
Upvotes: 2
Views: 1582
Reputation: 1838
You need to have a server-side build process which will assemble your handlebars templates together. You can optionally compile them so that then you only need the handlebars runtime js library.
You could try this: http://blog.selvakn.in/2012/05/precompiling-handlerbars-tempates-with.html
Upvotes: 3