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>
|
<html>
|
||||||
<header>
|
<head>
|
||||||
<title>@title</title>
|
<title>@title</title>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
@css 'assets/site.css'
|
@css 'assets/site.css'
|
||||||
</header>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>@title</h1>
|
<h1>@title</h1>
|
||||||
<button>Close the connection</button>
|
<button>Close the connection</button>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<header>
|
<head>
|
||||||
<title>@title</title>
|
<title>@title</title>
|
||||||
<style>html{display:none}</style>
|
<style>html{display:none}</style>
|
||||||
@css 'index.css'
|
@css 'index.css'
|
||||||
</header>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>@title</h1>
|
<h1>@title</h1>
|
||||||
<h2>@subtitle</h2>
|
<h2>@subtitle</h2>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<header>
|
<head>
|
||||||
<title>V Blog</title>
|
<title>V Blog</title>
|
||||||
</header>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
user id = @app.user_id <br>
|
user id = @app.user_id <br>
|
||||||
@for article in articles
|
@for article in articles
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<header>
|
<head>
|
||||||
<title>V Blog</title>
|
<title>V Blog</title>
|
||||||
</header>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action='/new_article' method='post'>
|
<form action='/new_article' method='post'>
|
||||||
<input type='text' placeholder='Title' name='title'> <br>
|
<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
|
||||||
<html>
|
<html>
|
||||||
<header>
|
<head>
|
||||||
<title>${page_title}</title>
|
<title>${page_title}</title>
|
||||||
@css 'src/templates/page/home.css'
|
@css 'src/templates/page/home.css'
|
||||||
</header>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 class="title">Hello, Vs.</h1>
|
<h1 class="title">Hello, Vs.</h1>
|
||||||
@for var in list_of_object
|
@for var in list_of_object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user