locomotivemtl / locomotive-boilerplate

🚂 Front-end boilerplate for projects by Locomotive.
https://locomotivemtl-boilerplate.vercel.app/
MIT License
459 stars 71 forks source link

Editing html and views folder #78

Closed one618 closed 2 years ago

one618 commented 3 years ago

Hello,

Am I supposed to edit the html files directly from www folder ? and what is the purpose of the views folder ? I know this question is coming from my lack of knowledge and experience I do apologize

thank you in advance

mcaskill commented 2 years ago

In most of our projects, we use a template engine like Mustache or Twig and we store the template files in the views directory. These templates are dynamically served from a server-side controller like PHP or compiled into HTML files in the www directory.

The ./views/boilerplate/template value in the ~mconfig.json~ loconfig.json can be changed to point to wherever you store your templates (be they HTML or a template engine files).

The primary focus of this boilerplate are the assets and build directories. The www directory is more of a placeholder than a practical example.