// Mixins
mixin input(type, label)
.input-container
input(type='#{type}' id='#{label}' required)
label(for='#{label}')=label
.bar
mixin button(text)
.button-container
button
span=text
// Pen Title
.pen-title
h1 Material Login Form
span
| Pen <i class='fa fa-code'></i> by <a href='http://andytran.me'>Andy Tran</a>
.rerun
a(href='') Rerun Pen
.container
.card
.card
h1.title Login
form
+input('text', 'Username')
+input('password', 'Password')
+button('Go')
.footer
a(href='#') Forgot your password?
.card.alt
.toggle
h1.title Register
.close
form发布于 2021-12-05 23:46:07
如果您从CodePen中找到它,您可以在"HTML“旁边的左上角看到它写着"(Pug)”。
帕格是一个模板引擎。它每周在NPM上的下载量为130万次,但我不认为它在整个行业中得到了广泛的应用。
你可以在他们的网站上获得更多关于它的信息:https://pugjs.org/api/getting-started.html。
https://stackoverflow.com/questions/70239438
复制相似问题