mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: document live reload
This commit is contained in:
parent
4f518c2850
commit
5355c67ebe
@ -86,6 +86,10 @@ pub enum FormatDelimiter {
|
|||||||
no_delimiter
|
no_delimiter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn Time.new(t Time) Time {
|
||||||
|
return new_time(t)
|
||||||
|
}
|
||||||
|
|
||||||
// smonth returns month name abbreviation.
|
// smonth returns month name abbreviation.
|
||||||
pub fn (t Time) smonth() string {
|
pub fn (t Time) smonth() string {
|
||||||
if t.month <= 0 || t.month > 12 {
|
if t.month <= 0 || t.month > 12 {
|
||||||
|
@ -7,7 +7,14 @@ The [gitly](https://gitly.org/) site is based on vweb.
|
|||||||
**_Some features may not be complete, and have some bugs._**
|
**_Some features may not be complete, and have some bugs._**
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
Just run **`v new <name> web`** in your terminal
|
Just run **`v new <name> web`** in your terminal.
|
||||||
|
|
||||||
|
Run your vweb app with a live reload via `v -d vweb_livereload watch run .`
|
||||||
|
|
||||||
|
Now modifying any file in your web app (whether it's a .v file with the backend logic
|
||||||
|
or a compiled .html template file) will result in an instant refresh of your app
|
||||||
|
in the browser. No need to quit the app, rebuild it, and refresh the page in the browser!
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user