fix: add scoped error logging for lexer/parser errors

- 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
This commit is contained in:
2026-01-25 17:10:02 +05:30
parent 9d3b729c6c
commit aaf6a1af2d
1148 changed files with 57 additions and 330 deletions

View File

@@ -0,0 +1,3 @@
a(href=
'asfd
asfd')

View File

@@ -0,0 +1 @@
case thisWillNotWork(

View File

@@ -0,0 +1 @@
case

View File

@@ -0,0 +1 @@
default foo

View File

@@ -0,0 +1,4 @@
if true
.foo
else false
.bar

View File

@@ -0,0 +1 @@
extends

View File

@@ -0,0 +1 @@
include:foo

View File

@@ -0,0 +1 @@
include:foo

View File

@@ -0,0 +1 @@
include:foo()foo.£

View File

@@ -0,0 +1 @@
include

View File

@@ -0,0 +1,4 @@
html
body
p Hey
p Is this in <body> or in <p>?

View File

@@ -0,0 +1,5 @@
mixin a
p hey
- var myMixin = 'a'
+#{myMixin]}

View File

@@ -0,0 +1 @@
.95

View File

@@ -0,0 +1 @@
.-

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@
each foo bar

View File

@@ -0,0 +1 @@
extend(data-foo='bar') I'm pretending to be a tag

View File

@@ -0,0 +1 @@
include(data-foo='bar') I'm pretending to be a tag

View File

@@ -0,0 +1,2 @@
//- #1871
p #[strong a}

View File

@@ -0,0 +1,2 @@
#{
'abc'

View File

@@ -0,0 +1,4 @@
p.
#[strong This strong text is really really long. This strong
text is really really long. This strong text is really really
long.]

View File

@@ -0,0 +1,3 @@
ul
- each foo in bar
li= foo

View File

@@ -0,0 +1 @@
p #[strong this is some terrible brackets mismatching

View File

@@ -0,0 +1 @@
when

View File

@@ -0,0 +1 @@
while