jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
457 stars 21 forks source link

Update Zmpl for template inheritance #76

Closed bobf closed 3 months ago

bobf commented 3 months ago

Permit setting template during view render with request.setTemplate()

Permit middleware to define custom routes to static content with pub const Routes (implemented for something no longer needed but seems useful anyway).

Implement globbing on custom routes, /foo/:bar* will glob all path segments including and after /foo/..., e.g. /foo/bar/baz/qux will pass invoke the custom view function with an array of bar, baz, qux as first argument (instead of typical resource ID).