moved test files
This commit is contained in:
8
tests/sample/01/home.pug
Normal file
8
tests/sample/01/home.pug
Normal 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")
|
||||
2
tests/sample/01/mixins/_buttons.pug
Normal file
2
tests/sample/01/mixins/_buttons.pug
Normal file
@@ -0,0 +1,2 @@
|
||||
mixin btn(text)
|
||||
button.btn= text
|
||||
4
tests/sample/01/mixins/_cards.pug
Normal file
4
tests/sample/01/mixins/_cards.pug
Normal file
@@ -0,0 +1,4 @@
|
||||
mixin card(title, content)
|
||||
.card
|
||||
.card-header= title
|
||||
.card-body= content
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user