mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
vweb: minor fixes
This commit is contained in:
parent
fbd9fedbfb
commit
61bfecfa09
4 changed files with 131 additions and 115 deletions
|
@ -13,10 +13,8 @@ pub mut:
|
|||
}
|
||||
|
||||
fn main() {
|
||||
mut app := App{}
|
||||
app.vweb = vweb.Context{}
|
||||
vweb.run(mut app, port)
|
||||
//vweb.run<App>(Port)
|
||||
println('noice')
|
||||
vweb.run<App>(port)
|
||||
}
|
||||
|
||||
pub fn (app mut App) init() {
|
||||
|
@ -32,6 +30,9 @@ pub fn (app mut App) index() {
|
|||
$vweb.html()
|
||||
}
|
||||
|
||||
pub fn (app mut App) reset() {
|
||||
}
|
||||
|
||||
pub fn (app mut App) text() {
|
||||
app.vweb.text('Hello world')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue