by Before Semicolon


HTML+ engine by default will use your pages directory files structure to create your site routes.

This means that all you have to do is organize your HTML page files in a manner it reflects the routes you want by grouping and nesting HTML files as you like.

# File Structure               # Routes

- server.js
- pages
   - index.html                /
   - contact.html              /contact
   - about.html                /about
   - 404.html                  /404
   - projects
      - index.html             /projects
      - todo-project.html      /projects/todo-project

The name of the file is very important and index.html files will always resolve to / path or the directory name as you can see for projects path above.