vweb: minor fixes

This commit is contained in:
Alexander Medvednikov 2019-12-20 03:02:16 +03:00
parent fbd9fedbfb
commit 61bfecfa09
4 changed files with 131 additions and 115 deletions

View file

@ -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')
}