Install the Wax cli using cargo :
$ cargo install wax-cli
md
$ wax create <NAME>
md
$ wax build <PATH>
graphql
./<my-wax-site>/*
│
├─ .wax - # Wax file cache
├─ dist - # Wax build output
│
├─ src/* - # Your codebase (html, css, and js)
│ ├─ lib/ - # Html wax components
│ ├─ pages/ - # Your html pages
│ └─ ...
│
└─ wax.toml - # Wax config file
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
```
```toml
[website] pages = "RelativePath" # Path to the directory containing your index.html.
[build] minify = "Boolean?" # If enabled, will minify the collapsed HTML files. ```
./assets
$ cargo run build ./assets