Closed bobf closed 8 months ago
Latest Zmpl provides template.renderWithLayout(other_template, data), allowing a template to be renedered within another template.
template.renderWithLayout(other_template, data)
Create layouts in src/app/views/layouts/ or use jetzig generate layout [name] and set pub const layout = "name"; in each view file.
src/app/views/layouts/
jetzig generate layout [name]
pub const layout = "name";
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 usejetzig generate layout [name]
and setpub const layout = "name";
in each view file.