mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-07-01 05:26:07 +00:00
Zmpl array detection
Latest Zmpl detects compatible arrays in structs added to template data. Small fix for static route compilation.
This commit is contained in:
parent
1e3c0468f7
commit
b85893000b
@ -25,8 +25,8 @@
|
||||
.hash = "jetkv-0.0.0-zCv0fmCGAgCyYqwHjk0P5KrYVRew1MJAtbtAcIO-WPpT",
|
||||
},
|
||||
.zmpl = .{
|
||||
.url = "https://github.com/jetzig-framework/zmpl/archive/b96cb431742b63302d8afc881660eabaeb1c4554.tar.gz",
|
||||
.hash = "zmpl-0.0.1-SYFGBrujAwDTRz6rfcxcmmMGT0sL9v2JP85-uG7BdEDb",
|
||||
.url = "https://github.com/jetzig-framework/zmpl/archive/febec2dd477adadf09c67676ac4bf2079046b1d6.tar.gz",
|
||||
.hash = "zmpl-0.0.1-SYFGBhilAwAoY1evzcCHqpNFZf1zuB6IhY0P2w-bgM3t",
|
||||
},
|
||||
.httpz = .{
|
||||
.url = "https://github.com/karlseguin/http.zig/archive/37d7cb9819b804ade5f4b974b82f8dd0622225ed.tar.gz",
|
||||
|
@ -31,7 +31,7 @@ pub fn main() !void {
|
||||
var index: usize = 0;
|
||||
while (it.next()) |arg| : (index += 1) {
|
||||
if (index == 0) continue;
|
||||
const file = try std.fs.createFileAbsolute(arg, .{});
|
||||
const file = try std.fs.cwd().createFile(arg, .{});
|
||||
const writer = file.writer();
|
||||
try compileStaticRoutes(allocator, writer);
|
||||
file.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user