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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user