Skip to content

Code comment and formatting

Pam edited this page Mar 22, 2017 · 10 revisions

File organization and formatting

  • All the front-end in the client folder
  • All the collections for the database go in the collections folder
  • Put all templates and sub-templates in the same file
  • Front end file names are capitalized
  • Back end file names are not capitalized
  • Template names are capitalized
  • Method names and variables int follow the same regular convention

Code formatting

  • Include comments where necessary only. Proper use of identifiers should be appropriate enough to understand most code.
  • Braces and bracket format

methodName(){
}

For templates, opening and closing tags (Ex: {{#if}} and {{/if}}) must be aligned, everything inside must be indented
{{#each}}
. {{rings}}
{{/each}}

Clone this wiki locally