mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: minor fixes
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user