19 lines
459 B
Markdown
19 lines
459 B
Markdown
# Pug Features Demo
|
|
|
|
This folder is a small Pug demo showing:
|
|
|
|
- interpolation with `#{name}`
|
|
- conditionals with `if` and `case`
|
|
- loops with `each`
|
|
- includes with `_summary.pug` and `_mixins.pug`
|
|
- layout inheritance with `extends ./layout.pug`
|
|
- reusable mixins with `+featureCard(feature)` and `+badge(...)`
|
|
|
|
Compile it with:
|
|
|
|
```bash
|
|
npx pug-cli priv/ui/pug-demo/index.pug --pretty --out priv/ui/pug-demo
|
|
```
|
|
|
|
That writes `priv/ui/pug-demo/index.html`.
|