meteoris2 icon indicating copy to clipboard operation
meteoris2 copied to clipboard

Are both 'views' and 'templates' directory necessary?

Open brylie opened this issue 10 years ago • 5 comments

The 'views' and 'templates directories serve nearly the same function, and may confuse developers having both in the same project. I.e. most or all of the meteor boilerplate projects choose either views or templates, but not both. What is the purpose of having both directories, and how might it be beneficial to provide only one?

brylie avatar Jun 17 '15 08:06 brylie

I still don't understand what did you mean templates and views. Do you mean like views/somethings/index.js and views/something/index.html?

radiegtya avatar Jun 18 '15 09:06 radiegtya

I was just confused by having both folders.

brylie avatar Jun 18 '15 09:06 brylie

oh you mean templates folders and views folder. maybe we can simply rename it using "theme". :) but don't forget also renaming the header, footer, etc thing inside those folder with prefix theme not template

radiegtya avatar Jun 18 '15 09:06 radiegtya

Alright. Thanks for your response. It is probably alright how things are currently, as I was just confused.

brylie avatar Jun 18 '15 10:06 brylie

btw I am also confused sometime, it was reasonable. and I think change it will be good. Just look at the reference famous frameworks like RAILS, django, n Laravel and simply following their naming convention.

radiegtya avatar Jun 18 '15 10:06 radiegtya