Guide › Introduction

Project structure

clarusjs only requires src/pages. Everything else is a convention this site follows.

my-site/
├── vite.config.ts        clarusjs() plugin
├── public/               copied to the build as is (CSS, images)
└── src/
    ├── pages/            one .tscl file per route
    │   ├── index.tscl          /
    │   └── guide/intro.tscl    /guide/intro
    ├── layouts/          components that render the whole page
    ├── components/       everything else you import
    └── stores/           shared state for islands (.ts)

Generated folders