下面的翡翠模板有什么问题。
当我试图通过将玉转换为 html 来找出答案时,我得到了意外的错误
extends layout
block content
.container
h1 Register Page
p.lead Say something worthwhile here.
br
form(role='form', action="/register",method="post", style='max-width: 300px;')
.form-group
input.form-control(type='text', name="username", placeholder='Enter Username')
.form-group
input.form-control(type='password', name="password", placeholder='Password')
button.btn.btn-default(type='submit') Submit
Â
a(href='/')
button.btn.btn-primary(type="button") Cancel
br
h4 info
我的设计看起来像:
我在 VS 代码中使用 pug 来美化代码并对其进行格式化。