mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00
Force unix-style path for view name
Windows compat.
This commit is contained in:
parent
eed58edeba
commit
f1ec5b216d
@ -178,6 +178,7 @@ fn writeRoute(self: *Self, writer: std.ArrayList(u8).Writer, route: Function) !v
|
||||
defer self.allocator.free(module_path);
|
||||
|
||||
const view_name = try self.allocator.dupe(u8, route.view_name);
|
||||
std.mem.replaceScalar(u8, view_name, '\\', '/');
|
||||
defer self.allocator.free(view_name);
|
||||
|
||||
std.mem.replaceScalar(u8, module_path, '\\', '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user