Fix installation instructions with correct git server URL

This commit is contained in:
2026-01-18 19:58:22 +05:30
parent fe62677a93
commit d48bc3dedd

View File

@@ -15,20 +15,19 @@ A Pug template engine for Zig.
## Installation ## Installation
Add to `build.zig.zon`: Add pugz as a dependency in your `build.zig.zon`:
```zig ```bash
.dependencies = .{ zig fetch --save "git+https://code.patial.tech/zig/pugz#main"
.pugz = .{
.url = "git+https://github.com/ankitpatial/pugz",
},
},
``` ```
Then in `build.zig`: Then in your `build.zig`, add the `pugz` module as a dependency:
```zig ```zig
const pugz = b.dependency("pugz", .{}); const pugz = b.dependency("pugz", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("pugz", pugz.module("pugz")); exe.root_module.addImport("pugz", pugz.module("pugz"));
``` ```
@@ -117,6 +116,7 @@ html
| Complex | 33.48 us | 29,872 | 4,852 bytes | | Complex | 33.48 us | 29,872 | 4,852 bytes |
### Comparison Benchmarks (`zig build bench-2`) ### Comparison Benchmarks (`zig build bench-2`)
ref: https://github.com/itsarnaud/template-engine-bench
2,000 iterations vs Pug.js: 2,000 iterations vs Pug.js: