1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: use <head> instead of <header> in the html templates (#18516)

This commit is contained in:
Turiiya 2023-06-22 10:11:02 +02:00 committed by GitHub
parent 8b25c4c9a3
commit af4e113f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -1,9 +1,9 @@
<html>
<header>
<head>
<title>@title</title>
<meta charset="utf-8"/>
@css 'assets/site.css'
</header>
</head>
<body>
<h1>@title</h1>
<button>Close the connection</button>

View File

@ -1,9 +1,9 @@
<html>
<header>
<head>
<title>@title</title>
<style>html{display:none}</style>
@css 'index.css'
</header>
</head>
<body>
<h1>@title</h1>
<h2>@subtitle</h2>

View File

@ -1,7 +1,7 @@
<html>
<header>
<head>
<title>V Blog</title>
</header>
</head>
<body>
user id = @app.user_id <br>
@for article in articles

View File

@ -1,7 +1,7 @@
<html>
<header>
<head>
<title>V Blog</title>
</header>
</head>
<body>
<form action='/new_article' method='post'>
<input type='text' placeholder='Title' name='title'> <br>

View File

@ -92,10 +92,10 @@ That means that the template automatically has access to that action's entire en
```html
<html>
<header>
<head>
<title>${page_title}</title>
@css 'src/templates/page/home.css'
</header>
</head>
<body>
<h1 class="title">Hello, Vs.</h1>
@for var in list_of_object