Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify route generation #49

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Simplify route generation #49

merged 1 commit into from
Apr 2, 2024

Conversation

bobf
Copy link
Contributor

@bobf bobf commented Apr 2, 2024

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.

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.
@bobf bobf merged commit b94845a into main Apr 2, 2024
3 checks passed
@bobf bobf deleted the simplify-route-generation branch April 28, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant