Skip to content

Commit

Permalink
vweb: use <head> instead of <header> in the html templates (#18516)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 22, 2023
1 parent 8b25c4c commit af4e113
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/vweb/server_sent_events/index.html
@@ -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>
Expand Down
4 changes: 2 additions & 2 deletions examples/vweb/vweb_assets/index.html
@@ -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>
Expand Down
@@ -1,7 +1,7 @@
<html>
<header>
<head>
<title>V Blog</title>
</header>
</head>
<body>
user id = @app.user_id <br>
@for article in articles
Expand Down
@@ -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>
Expand Down
4 changes: 2 additions & 2 deletions vlib/vweb/README.md
Expand Up @@ -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
Expand Down

0 comments on commit af4e113

Please sign in to comment.