Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 4 months ago
JSON representation

A comptime HTML preprocessor with a builtin template engine for Zig.

Awesome Lists containing this project

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
```