- mixin.zig: expandNode and expandNodeWithArgs now recurse into node.consequent and node.alternate for Conditional nodes - view_engine.zig: process includes and collect mixins from child template before extracting blocks in processExtends This fixes mixin calls inside if/else blocks not being rendered in compiled templates.
21 lines
450 B
Plaintext
21 lines
450 B
Plaintext
extends ../layouts/base.pug
|
|
|
|
block title
|
|
title Include Demo | Pugz Store
|
|
|
|
block content
|
|
section.page-header
|
|
.container
|
|
h1 Include Demo
|
|
p Demonstrating the include directive
|
|
|
|
section.section
|
|
.container
|
|
h2 Content from this page
|
|
p The box below is included from a separate partial file.
|
|
|
|
include ../includes/some_partial.pug
|
|
|
|
h2 After the include
|
|
p This content comes after the included partial.
|