1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: return $vweb.html()

This commit is contained in:
Alexander Medvednikov
2020-06-20 03:12:35 +02:00
parent e41ddab3b0
commit 1d8d19c977
7 changed files with 32 additions and 26 deletions

View File

@ -28,13 +28,13 @@ pub fn (mut app App) json_endpoint() {
app.vweb.json('{"a": 3}')
}
pub fn (mut app App) index() {
pub fn (mut app App) index() vweb.Result {
app.cnt++
show := true
//app.vweb.text('Hello world from vweb')
hello := 'Hello world from vweb'
numbers := [1,2,3]
$vweb.html()
return $vweb.html()
}
pub fn (mut app App) text() {