init
This commit is contained in:
18
priv/ui/pug-demo/README.md
Normal file
18
priv/ui/pug-demo/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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`.
|
||||
Reference in New Issue
Block a user