jetzig-framework / jetzig

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

Implement layouts #23

Closed bobf closed 8 months ago

bobf commented 8 months ago

Latest Zmpl provides template.renderWithLayout(other_template, data), allowing a template to be renedered within another template.

Create layouts in src/app/views/layouts/ or use jetzig generate layout [name] and set pub const layout = "name"; in each view file.