From cd4932ff7981d2221b6ec196ef5f676c143b04c9 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Tue, 2 Apr 2024 22:39:52 +0100 Subject: [PATCH] Use view_name correctly --- src/GenerateRoutes.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GenerateRoutes.zig b/src/GenerateRoutes.zig index 6b2a3b0..04c3bd9 100644 --- a/src/GenerateRoutes.zig +++ b/src/GenerateRoutes.zig @@ -186,7 +186,7 @@ fn writeRoute(self: *Self, writer: std.ArrayList(u8).Writer, route: Function) !v const output = try std.fmt.allocPrint(self.allocator, output_template, .{ full_name, route.name, - route.view_name, + view_name, if (route.static) "static" else "dynamic", if (route.static) "true" else "false", uri_path,