092 template variant conditional

✓ Passing This code compiles and runs correctly.

Code

// Test: `|template(once)|zig` supports Liquid {% if %} blocks at template-time.
// The template renders WITHOUT the disabled-feature branch, so the runtime
// program never sees that code.

const std = @import("std");

~pub event check {}

~proc check|template(once)|zig {
    std.debug.print("running {{ proc_name }}\n", .{});
    {% if proc_name %}
    std.debug.print("template saw a proc_name\n", .{});
    {% endif %}
}

~check()
input.kz

Actual

running check
template saw a proc_name

Expected output

running check
template saw a proc_name

Test Configuration

MUST_RUN