moved test files

This commit is contained in:
2026-01-27 15:09:08 +05:30
parent aaf6a1af2d
commit aca930af41
4 changed files with 15 additions and 1 deletions

8
tests/sample/01/home.pug Normal file
View File

@@ -0,0 +1,8 @@
include mixins/_buttons.pug
include mixins/_cards.pug
doctype html
html
body
+primary-button("Click me")
+card("Title", "content here")

View File

@@ -0,0 +1,2 @@
mixin btn(text)
button.btn= text

View File

@@ -0,0 +1,4 @@
mixin card(title, content)
.card
.card-header= title
.card-body= content

View File

@@ -8,7 +8,7 @@ pub fn main() !void {
// Test: Simple include from test_views // Test: Simple include from test_views
var engine = pugz.ViewEngine.init(allocator, .{ var engine = pugz.ViewEngine.init(allocator, .{
.views_dir = "test_views", .views_dir = "tests/sample/01",
}) catch |err| { }) catch |err| {
std.debug.print("Init Error: {}\n", .{err}); std.debug.print("Init Error: {}\n", .{err});
return err; return err;