mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tutorial: use the master branch
This commit is contained in:
parent
d49927937b
commit
3a2c46a1ce
@ -82,7 +82,7 @@ v run blog.v
|
||||
|
||||
and open http://localhost:8080/ in your browser:
|
||||
|
||||
<img width=662 src="https://github.com/vlang/v/blob/tutorial/tutorials/hello.png?raw=true)">
|
||||
<img width=662 src="https://github.com/vlang/v/blob/master/tutorials/hello.png?raw=true)">
|
||||
|
||||
The `App` struct is an entry point of our web application. If you have experience
|
||||
with an MVC web framework, you can think of it as a controller. (Vweb is
|
||||
@ -99,7 +99,7 @@ fn (app mut App) time() {
|
||||
```
|
||||
|
||||
|
||||
<img width=662 src="https://github.com/vlang/v/blob/tutorial/tutorials/time.png?raw=true)">
|
||||
<img width=662 src="https://github.com/vlang/v/blob/master/tutorials/time.png?raw=true)">
|
||||
|
||||
>You have to rebuild and restart the website every time you change the code.
|
||||
In the future Vweb will detect changes and recompile the website in the background
|
||||
@ -136,7 +136,7 @@ fn (app mut App) index() {
|
||||
}
|
||||
```
|
||||
|
||||
<img width=662 src="https://github.com/vlang/v/blob/tutorial/tutorials/hello_html.png?raw=true)">
|
||||
<img width=662 src="https://github.com/vlang/v/blob/master/tutorials/hello_html.png?raw=true)">
|
||||
|
||||
Good, now we have an actual HTML page.
|
||||
|
||||
@ -276,7 +276,7 @@ Finally, let's update our view:
|
||||
v run .
|
||||
```
|
||||
|
||||
<img width=662 src="https://github.com/vlang/v/blob/tutorial/tutorials/articles1.png?raw=true)">
|
||||
<img width=662 src="https://github.com/vlang/v/blob/master/tutorials/articles1.png?raw=true)">
|
||||
|
||||
That was very simple, wasn't it?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user