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:
32
tests/sample_data/pug/test/cases/mixin.attrs.html
Normal file
32
tests/sample_data/pug/test/cases/mixin.attrs.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<body>
|
||||
<div class="centered" id="First">Hello World
|
||||
</div>
|
||||
<div class="centered" id="Second">
|
||||
<h1>Section 1</h1>
|
||||
<p>Some important content.</p>
|
||||
</div>
|
||||
<div class="centered" id="Third">
|
||||
<h1 class="foo bar">Section 2</h1>
|
||||
<p>Even more important content.</p>
|
||||
<div class="footer"><a href="menu.html">Back</a></div>
|
||||
</div>
|
||||
<div class="stretch">
|
||||
<div class="centered">
|
||||
<h1 class="highlight">Section 3</h1>
|
||||
<p>Last content.</p>
|
||||
<div class="footer"><a href="#">Back</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom foo bar" name="end" id="Last" data-attr="baz">
|
||||
<p>Some final words.</p>
|
||||
</div>
|
||||
<div class="bottom class1 class2">
|
||||
</div>
|
||||
</body>
|
||||
<div class="thing foo bar thunk" attr1="foo" attr2="bar" attr3="baz" data-foo="<biz>" data-bar="<biz>"></div>
|
||||
<div data-profile="profile" data-creator-name="name">work</div>
|
||||
<div class="thing baz" attr1="foo" attr2="bar" attr3="qux"></div>
|
||||
<p>1</p>
|
||||
<p>2</p>
|
||||
<p>3</p>
|
||||
<p>4</p>
|
||||
Reference in New Issue
Block a user