Logo
Explore Help
Sign In
zig/pugz
1
0
Fork 0
You've already forked pugz
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
d53ff24931ed20522a131cc5033a0572f99684f9
pugz/examples/demo/views/page-a.pug

16 lines
211 B
Plaintext
Raw Normal View History

Initial commit: Pugz - Pug-like HTML template engine in Zig 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.
2026-01-17 18:32:29 +05:30
extends layout.pug
block scripts
script(src='/jquery.js')
script(src='/pets.js')
block content
h1= title
p Welcome to the pets page!
ul
li Cat
li Dog
ul
each val in items
li= val
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 26ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API