jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
308 stars 15 forks source link

Simplify route generation #49

Closed bobf closed 2 months ago

bobf commented 2 months ago

Generate an array of jetzig.views.Route in GenerateRoutes.zig exe instead of a meta-route that we later translate into an actual route. This makes things much simpler for static routes at build time and dynamic routes at run time as we no longer need to use comptime - we just have an array of routes ready-made.