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:
parent
8b25c4c9a3
commit
af4e113f6c
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<header>
|
||||
<head>
|
||||
<title>V Blog</title>
|
||||
</header>
|
||||
</head>
|
||||
<body>
|
||||
user id = @app.user_id <br>
|
||||
@for article in articles
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user