jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
550 stars 24 forks source link

JSON and query param parsing/SSG params #8

Closed bobf closed 8 months ago

bobf commented 8 months ago

Implement jetzig.http.Request.params() which parses either a JSON request body or a query param string into a jetzig.data.Value.

Allow configuring params for static site generation - configure an array of params for each endpoint which is then parsed at build time and a separate JSON and HTML output is generated for each by invoking the relevant view function and passing in resource ID/params. Params are stored in generated routes.zig for route matching at run time.