- Add std.log.scoped(.pugz) to template.zig and view_engine.zig - Log detailed error info (code, line, column, message) when parsing fails - Log template path context in ViewEngine on parse errors - Remove debug print from lexer, use proper scoped logging instead - Move benchmarks, docs, examples, playground, tests out of src/ to project root - Update build.zig and documentation paths accordingly - Bump version to 0.3.1
18 lines
520 B
Plaintext
18 lines
520 B
Plaintext
//- Cart item display
|
|
|
|
mixin cart-item(item)
|
|
.cart-item
|
|
.cart-item-image
|
|
img(src=item.image alt=item.name)
|
|
.cart-item-details
|
|
h4.cart-item-name #{item.name}
|
|
p.cart-item-variant #{item.variant}
|
|
span.cart-item-price $#{item.price}
|
|
.cart-item-quantity
|
|
button.qty-btn.qty-minus -
|
|
input.qty-input(type="number" value=item.quantity min="1")
|
|
button.qty-btn.qty-plus +
|
|
.cart-item-total
|
|
span $#{item.total}
|
|
button.cart-item-remove(aria-label="Remove item") x
|