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

Permit setting template during view render with `request.setTemplate()` Permit middleware to define custom routes to static content with `pub const Routes` (implemented for something no longer needed but seems useful anyway). Implement globbing on custom routes, `/foo/:bar*` will glob all path segments including and after `/foo/...`, e.g. `/foo/bar/baz/qux` will pass invoke the custom view function with an array of `bar`, `baz`, `qux` as first argument (instead of typical resource ID).
40 lines
1.6 KiB
Zig
40 lines
1.6 KiB
Zig
.{
|
|
.name = "jetzig",
|
|
.version = "0.0.0",
|
|
.dependencies = .{
|
|
.zmd = .{
|
|
.url = "https://github.com/jetzig-framework/zmd/archive/a197906b017d2a2d6c1896d77c04a74b13ddfa7f.tar.gz",
|
|
.hash = "12203b56c2e17a2fd62ea3d3d9be466f43921a3aef88b381cf58f41251815205fdb5",
|
|
},
|
|
.zmpl = .{
|
|
.url = "https://github.com/jetzig-framework/zmpl/archive/aa4d8ad5b63976d96e3b2c187f5b0b2c693905a1.tar.gz",
|
|
.hash = "1220b6dfedaf6ad2b464ebcec2aafdc01ba593a07a53885033d56c50a5a04334b517",
|
|
},
|
|
.jetkv = .{
|
|
.url = "https://github.com/jetzig-framework/jetkv/archive/78bcdcc6b0cbd3ca808685c64554a15701f13250.tar.gz",
|
|
.hash = "12201944769794b2f18e3932ec3d5031066d0ccb3293cf7c3fb1f5b269e56b76c57e",
|
|
},
|
|
.args = .{
|
|
.url = "https://github.com/ikskuh/zig-args/archive/872272205d95bdba33798c94e72c5387a31bc806.tar.gz",
|
|
.hash = "1220fe6ae56b668cc4a033282b5f227bfbb46a67ede6d84e9f9493fea9de339b5f37",
|
|
},
|
|
.smtp_client = .{
|
|
.url = "https://github.com/karlseguin/smtp_client.zig/archive/964152ad4e19dc1d22f6def6f659c86df60e7832.tar.gz",
|
|
.hash = "1220d4f1c2472769b0d689ea878f41f0a66cb07f28569a138aea2c0a648a5c90dd4e",
|
|
},
|
|
.httpz = .{
|
|
.url = "https://github.com/karlseguin/http.zig/archive/4ed728d21999ffcb11cc0b0604dcebc9e02cfc17.tar.gz",
|
|
.hash = "122010547ef8bbc781372311b66ce72b297c4e61e3423437825da076055ff9c07bb4",
|
|
},
|
|
},
|
|
|
|
.paths = .{
|
|
"",
|
|
"build.zig",
|
|
"build.zig.zon",
|
|
"src/jetzig",
|
|
"LICENSE",
|
|
"README.md",
|
|
},
|
|
}
|