mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00

Implement `jetzig.http.Request.params()` which parses either a JSON request body or a query param string into a `jetzig.data.Value`. Allow configuring params for static site generation - configure an array of params for each endpoint which is then parsed at build time and a separate JSON and HTML output is generated for each by invoking the relevant view function and passing in resource ID/params. Params are stored in generated `routes.zig` for route matching at run time.
20 lines
466 B
Zig
20 lines
466 B
Zig
.{
|
|
.name = "jetzig",
|
|
.version = "0.0.0",
|
|
.dependencies = .{
|
|
.zmpl = .{
|
|
.url = "https://github.com/jetzig-framework/zmpl/archive/41ac97a026e124f93d316eb838fa015a5a52bb15.tar.gz",
|
|
.hash = "122053b4c76247572201afbbec8fbde8c014c25984a3ca780ed4f6d514cc939038df",
|
|
},
|
|
},
|
|
|
|
.paths = .{
|
|
"",
|
|
"build.zig",
|
|
"build.zig.zon",
|
|
"src/jetzig",
|
|
"LICENSE",
|
|
"README.md",
|
|
},
|
|
}
|