Hello
Please consider this diet template:
doctype html
html(lang="es", dir="ltr")
head
meta(name="viewport",
content="width=device-width, user-scalable=no, initial-scale=1.0")
meta(charset="utf-8")
link(rel="stylesheet", type="text/css",
href="main.css")
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap" rel="stylesheet">
body
div.main
div.container.a-container#a-container
form(id="loginfrm", class="frm",
method="post", action="/login_attempt")
h2.form_title.title Create Account
span.form__span or use email for
registration
input.form__input(type="text",
placeholder="Name" )
input.form__input(type="text",
placeholder="Email")
input.form__input(type="password",
placeholder="Password")
button().form__button.button.submit
SIGN UP
Please notice the line `form(id= ...`. This line is causing the
following error:
login.dt(29,45): Error: found `method` when expecting `;`
following `return` statement
login.dt(29,51): Error: found `=` instead of statement
login.dt(28,12): Error: missing closing `)` after `if
("form"`
login.dt(28,21): Error: found `)` when expecting `;`
following statement
login.dt(28,36): Error: found `method` when expecting `)`
login.dt(28,42): Error: found `=` when expecting `)`
login.dt(28,43): Error: found `""` when expecting `)`
login.dt(28,45): Error: found `)` instead of statement
/root/.dub/packages/diet-ng-1.8.1/diet-ng/source/diet/html.d(246,8): Error: template instance `diet.html.compileHTMLDietFileString!("login.dt", contents, DefaultDietFilters).exec!(StreamOutputRange!(InterfaceProxy!(OutputStream), 1024LU))` error instantiating
/root/.dub/packages/vibe-d-0.9.5/vibe-d/http/vibe/http/server.d(351,66): instantiated from here: `compileHTMLDietFileString!(StreamOutputRange!(InterfaceProxy!(OutputStream), 1024LU))`
source/app.d(41,5): instantiated from here:
`render!"login.dt"`
What is the problem? How can I resolve it? Thank you.