Compare commits

...

2 Commits

Author SHA1 Message Date
bobf
695664bc10
Merge pull request #209 from jetzig-framework/zmpl-array-detection
Zmpl array detection
2025-05-25 12:51:26 +01:00
Bob Farrell
b85893000b Zmpl array detection
Latest Zmpl detects compatible arrays in structs added to template data.

Small fix for static route compilation.
2025-05-25 12:43:17 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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();