Features: - Lexer with indentation tracking and raw text block support - Parser producing AST from token stream - Runtime with variable interpolation, conditionals, loops - Mixin support (params, defaults, rest args, block content, attributes) - Template inheritance (extends/block/append/prepend) - Plain text (piped, dot blocks, literal HTML) - Tag interpolation (#[tag text]) - Block expansion with colon - Self-closing tags (void elements + explicit /) - Case/when statements - Comments (rendered and silent) All 113 tests passing.
12 lines
180 B
Plaintext
12 lines
180 B
Plaintext
extends layout-2.pug
|
|
|
|
block append head
|
|
script(src='/vendor/three.js')
|
|
script(src='/game.js')
|
|
|
|
block content
|
|
p
|
|
| cheks manually the head section
|
|
br
|
|
| hello there
|