From aca930af4167ab51e551418ea1f40be648aa8f05 Mon Sep 17 00:00:00 2001 From: Ankit Patial Date: Tue, 27 Jan 2026 15:09:08 +0530 Subject: [PATCH] moved test files --- tests/sample/01/home.pug | 8 ++++++++ tests/sample/01/mixins/_buttons.pug | 2 ++ tests/sample/01/mixins/_cards.pug | 4 ++++ tests/test_includes.zig | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/sample/01/home.pug create mode 100644 tests/sample/01/mixins/_buttons.pug create mode 100644 tests/sample/01/mixins/_cards.pug diff --git a/tests/sample/01/home.pug b/tests/sample/01/home.pug new file mode 100644 index 0000000..a9409cf --- /dev/null +++ b/tests/sample/01/home.pug @@ -0,0 +1,8 @@ +include mixins/_buttons.pug +include mixins/_cards.pug + +doctype html +html + body + +primary-button("Click me") + +card("Title", "content here") diff --git a/tests/sample/01/mixins/_buttons.pug b/tests/sample/01/mixins/_buttons.pug new file mode 100644 index 0000000..d0ee89a --- /dev/null +++ b/tests/sample/01/mixins/_buttons.pug @@ -0,0 +1,2 @@ +mixin btn(text) + button.btn= text diff --git a/tests/sample/01/mixins/_cards.pug b/tests/sample/01/mixins/_cards.pug new file mode 100644 index 0000000..272c1b8 --- /dev/null +++ b/tests/sample/01/mixins/_cards.pug @@ -0,0 +1,4 @@ +mixin card(title, content) + .card + .card-header= title + .card-body= content diff --git a/tests/test_includes.zig b/tests/test_includes.zig index 6d106db..2d6afd0 100644 --- a/tests/test_includes.zig +++ b/tests/test_includes.zig @@ -8,7 +8,7 @@ pub fn main() !void { // Test: Simple include from test_views var engine = pugz.ViewEngine.init(allocator, .{ - .views_dir = "test_views", + .views_dir = "tests/sample/01", }) catch |err| { std.debug.print("Init Error: {}\n", .{err}); return err;