I'm building an app in ember js with rails as backend(I am using the ember-rails gem) and I'm struggling with the correct way to name my handlebars templates. What is the correct convention? For example:
I imagine that for the route /user_profiles/4/
I should put my template in user_profiles/show.hbs
right? Or should it be userProfile/show.hbs
?
Same for a simple template, should it be user_menu.hbs
or userMenu.hbs
(both of them are working for me). However in order to render it with the helper i need to do :
{{render 'userMenu' }}
to use right my App.UserMenuController
So Should I use camelCase every where or snake_case ?? or both (camelCase for folders and snake_case for filenames)
Can someone help my to understand it since in ember guides the are mostly simple names like posts
or comments
so it is hard to understand.