1# Pek
2
3![loc](https://sloc.xyz/github/nektro/zig-pek)
4[![license](https://img.shields.io/github/license/nektro/zig-pek.svg)](https://github.com/nektro/zig-pek/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
8
9A comptime HTML preprocessor with a builtin template engine for Zig.
10
11## Example Document
12
13```fsharp
14html[lang="en"](
15 head(
16 title("Pek Example")
17 meta[charset="UTF-8"]
18 meta[name="viewport" content="width=device-width,initial-scale=1"]
19 )
20 body(
21 h1("Pek Example")
22 hr
23 p("This is an example HTML document written in "a[href="https://github.com/nektro/zig-pek"]("Pek")".")
24 )
25)
26```
27
28## Example Usage
29
30See [test.zig](test.zig).