mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-07-01 05:26:07 +00:00
Merge pull request #209 from jetzig-framework/zmpl-array-detection
Zmpl array detection
This commit is contained in:
commit
695664bc10
@ -25,8 +25,8 @@
|
|||||||
.hash = "jetkv-0.0.0-zCv0fmCGAgCyYqwHjk0P5KrYVRew1MJAtbtAcIO-WPpT",
|
.hash = "jetkv-0.0.0-zCv0fmCGAgCyYqwHjk0P5KrYVRew1MJAtbtAcIO-WPpT",
|
||||||
},
|
},
|
||||||
.zmpl = .{
|
.zmpl = .{
|
||||||
.url = "https://github.com/jetzig-framework/zmpl/archive/b96cb431742b63302d8afc881660eabaeb1c4554.tar.gz",
|
.url = "https://github.com/jetzig-framework/zmpl/archive/febec2dd477adadf09c67676ac4bf2079046b1d6.tar.gz",
|
||||||
.hash = "zmpl-0.0.1-SYFGBrujAwDTRz6rfcxcmmMGT0sL9v2JP85-uG7BdEDb",
|
.hash = "zmpl-0.0.1-SYFGBhilAwAoY1evzcCHqpNFZf1zuB6IhY0P2w-bgM3t",
|
||||||
},
|
},
|
||||||
.httpz = .{
|
.httpz = .{
|
||||||
.url = "https://github.com/karlseguin/http.zig/archive/37d7cb9819b804ade5f4b974b82f8dd0622225ed.tar.gz",
|
.url = "https://github.com/karlseguin/http.zig/archive/37d7cb9819b804ade5f4b974b82f8dd0622225ed.tar.gz",
|
||||||
|
@ -31,7 +31,7 @@ pub fn main() !void {
|
|||||||
var index: usize = 0;
|
var index: usize = 0;
|
||||||
while (it.next()) |arg| : (index += 1) {
|
while (it.next()) |arg| : (index += 1) {
|
||||||
if (index == 0) continue;
|
if (index == 0) continue;
|
||||||
const file = try std.fs.createFileAbsolute(arg, .{});
|
const file = try std.fs.cwd().createFile(arg, .{});
|
||||||
const writer = file.writer();
|
const writer = file.writer();
|
||||||
try compileStaticRoutes(allocator, writer);
|
try compileStaticRoutes(allocator, writer);
|
||||||
file.close();
|
file.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user