15 Commits

Author SHA1 Message Date
Bob Farrell
216b86c235 JSON and query param parsing/SSG params
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.
2024-02-25 09:25:00 +00:00
Bob Farrell
8c5ffcb9f6 Fix logo path 2024-02-17 16:02:52 +00:00
Bob Farrell
66f6e13741 Update README
Update checklist/contributors
2024-02-17 15:58:33 +00:00
Bob Farrell
6d487392a8 Add z1fire to contributors
Discord admin and public relations officer. :)
2024-02-15 22:41:18 +00:00
Bob Farrell
bdb813c521 Dump stack trace on internal server error
Provide stack trace for debugging runtime errors in debug builds
2024-02-15 21:40:21 +00:00
Bob Farrell
7958480ff7 Provide abstraction for headers
Basic abstraction wrapping existing std.http.Headers to provide a stable
interface.
2024-02-15 20:01:07 +00:00
Bob Farrell
5623be3e65 Add link to website to README 2024-02-04 15:32:23 +00:00
Bob Farrell
ed1ba9546f Remove unneeded title 2024-02-04 14:05:55 +00:00
Bob Farrell
f24a959ef3 Update README, add logo & discord link 2024-02-04 14:05:18 +00:00
Bob Farrell
50f518806a Minor tweaks to example code 2024-01-21 22:31:33 +00:00
Bob Farrell
b77ea5fd51 Static content, init/setup tweaks, some cleanup 2024-01-21 20:28:27 +00:00
Bob Farrell
f8502be587 Log error to output and add to data 2024-01-20 19:04:56 +00:00
Bob Farrell
cb52ccffb9 Error handling 2024-01-18 21:05:17 +00:00
Bob Farrell
65bb626bbc Sessions 2024-01-17 23:01:05 +00:00
Bob Farrell
7748b25e64 Templating 2024-01-15 11:05:17 +00:00