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

3 lines
66 B
Plaintext
Raw Normal View History

fix: avoid variable shadowing in nested mixin calls with same parameter name When a mixin calls another mixin passing a variable with the same name as the parameter (e.g., +alert(message) where alert has param message), skip generating redundant const declaration since the variable is already in scope. Also adds missing alert.pug mixin for demo project.
2026-01-22 23:49:01 +05:30
mixin alert_error(message)
+alert(message)(class="alert-error")
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 38ms 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