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
ca573f3166e92f81e8411c9ce85a9cca740fe03e
pugz/examples/demo/views/mixins/buttons.pug

6 lines
134 B
Plaintext
Raw Normal View History

Add ViewEngine for easy server integration - ViewEngine manages views directory with path resolution - Auto-loads mixins from views/mixins/ directory - Simplifies template paths (relative to views dir, auto-adds extension) - Updated example app to use ViewEngine - Added example mixins (buttons.pug, cards.pug) - Updated CLAUDE.md with ViewEngine documentation
2026-01-17 18:50:16 +05:30
mixin btn(text, type="primary")
button(class="btn btn-" + type)= text
mixin btn-link(href, text)
a.btn.btn-link(href=href)= text
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 20ms 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