https://github.com/nektro/zig-pek
A comptime HTML preprocessor with a builtin template engine for Zig.
https://github.com/nektro/zig-pek
zig-package
Last synced: 3 months ago
JSON representation
A comptime HTML preprocessor with a builtin template engine for Zig.
- Host: GitHub
- URL: https://github.com/nektro/zig-pek
- Owner: nektro
- License: mpl-2.0
- Created: 2021-08-05T07:47:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-16T06:11:05.000Z (4 months ago)
- Last Synced: 2025-03-18T13:15:07.133Z (3 months ago)
- Topics: zig-package
- Language: Zig
- Homepage:
- Size: 182 KB
- Stars: 39
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - zig-pek🗒️A comptime HTML preprocessor with a builtin template engine for Zig
README
# Pek
A comptime HTML preprocessor with a builtin template engine for Zig.
## Example Document
```fsharp
html[lang="en"](
head(
title("Pek Example")
meta[charset="UTF-8"]
meta[name="viewport" content="width=device-width,initial-scale=1"]
)
body(
h1("Pek Example")
hr
p("This is an example HTML document written in "a[href="https://github.com/nektro/zig-pek"]("Pek")".")
)
)
```## Example Usage
[src/main.zig](src/main.zig)## Built With
- [Zig](https://github.com/ziglang/zig) master
- [Zigmod](https://github.com/nektro/zigmod) package manager## Add me
```
$ zigmod aq add 1/nektro/pek
```