Skip to content

Commit 06674db

Browse files
committed
Use fork of zig-args (temporary)
Revert when [this PR](ikskuh/zig-args#67) is merged.
1 parent 099a2a5 commit 06674db

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

build.zig.zon

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
.hash = "smtp_client-0.0.1-AAAAAIJkAQCngHtRYVUMsMuncmicSHK_7ugwWibDzQ4S",
3333
},
3434
.args = .{
35-
.url = "https://github.com/ikskuh/zig-args/archive/968258dc1b1230493d8f1677097c832a3d7e0bd8.tar.gz",
36-
.hash = "1220bdedf1a993d852d8aebcd63922a8fb163fac37b9c6ff72d187b2847a4a3a4248",
35+
.url = "https://github.com/bobf/zig-args/archive/88cbade9a517a4014824f8f53f3c48c8a0b2ffe1.tar.gz",
36+
.hash = "zig_args-0.0.0-jqtN6P_NAAC97fGpk9hS2K681jkiqPsWP6w3ucb_ctGH",
3737
},
3838
},
3939

cli/build.zig.zon

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
.hash = "1220bdedf1a993d852d8aebcd63922a8fb163fac37b9c6ff72d187b2847a4a3a4248",
1111
},
1212
.jetquery = .{
13-
.url = "https://github.com/jetzig-framework/jetquery/archive/55ebed84ad80d3d6c6e026c06e37b7de22168e7b.tar.gz",
14-
.hash = "1220715b9064087cdc114e1a6a087e56d242cea56bc5759b740f4c2d5c1765822add",
13+
.url = "https://github.com/jetzig-framework/jetquery/archive/795136c43f6d5bd216c136748bafd22892277725.tar.gz",
14+
.hash = "jetquery-0.0.0-TNf3zqZFBgDS2CaIG4DvLwaiGeAxxbfAi-DnEnSKx-mf",
1515
},
1616
},
1717
.paths = .{

demo/src/app/views/root.zig

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ const importedFunction = @import("../lib/example.zig").exampleFunction;
55

66
pub const layout = "application";
77

8-
pub fn index(request: *jetzig.Request, data: *jetzig.Data) !jetzig.View {
9-
var root = try data.object();
8+
pub fn index(request: *jetzig.Request) !jetzig.View {
9+
var root = try request.data(.object);
1010
try root.put("message", "Welcome to Jetzig!");
1111
try root.put("custom_number", customFunction(100, 200, 300));
1212
try root.put("imported_number", importedFunction(100, 200, 300));
1313

1414
try request.response.headers.append("x-example-header", "example header value");
15-
try request.server.logger.INFO("data", .{});
1615

1716
return request.render(.ok);
1817
}

0 commit comments

Comments
 (0)