| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | # Pek |
| 2 | |
| 3 | A comptime HTML preprocessor with a builtin template engine for Zig. |
| 4 | |
| 5 | ## Example Document |
| 6 | |
| 7 | ```fsharp |
| 8 | html[lang="en"]( |
| 9 | head( |
| 10 | title("Pek Example") |
| 11 | meta[charset="UTF-8"] |
| 12 | meta[name="viewport" content="width=device-width,initial-scale=1"] |
| 13 | ) |
| 14 | body( |
| 15 | h1("Pek Example") |
| 16 | hr |
| 17 | p("This is an example HTML document written in "a[href="https://github.com/nektro/zig-pek"]("Pek")".") |
| 18 | ) |
| 19 | ) |
| 20 | ``` |
| 21 | |
| 22 | ## Example Usage |
| 23 | [src/main.zig](src/main.zig) |
| 24 | |
| 25 | ## Built With |
| 26 | - [Zig](https://github.com/ziglang/zig) master |
| 27 | - [Zigmod](https://github.com/nektro/zigmod) package manager |
| 28 | |
| 29 | ## Add me |
| 30 | ``` |
| 31 | $ zigmod aq add 1/nektro/pek |
| 32 | ``` |
| 33 | |
| 34 | ## License |
| 35 | AGPL-3.0 |