graphql
./<my-wax-site>/*
├─ src/* - # Your codebase (html, css, and js)
│ ├─ .wax - # Wax file cache
│ ├─ lib/ - # Html components
│ ├─ routes/ - # Location of all your html pages
│ ├─ wax.toml - # Wax config file
│ └─ ...
│
└─ build/ - # Wax build output
Install the Wax cli using cargo :
$ cargo install wax-cli
md
$ wax create <NAME>
md
$ wax build <PATH>
Wax components are an extension of html.
```html ~ src/lib/my-component.html
Hello from my component ! :D
```
Importing / including wax components is done using the
tag.
e.g.
```html ~ src/routes/index.html
…Passing parameters to a component is done using html attributes.
e.g.
```html ~ src/routes/index.html
…Each component has to declare its parameters using
Parameters can be inserted into the html using { [key] }
```html ~ src/lib/my-component.html
```
./assets
$ cargo run build ./assets