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

cgen: $action (ComptimeCall); vweb: hello world works!

This commit is contained in:
Alexander Medvednikov
2020-06-06 10:05:26 +02:00
parent 0a3486b4c5
commit 7815c5b108
6 changed files with 45 additions and 14 deletions

View File

@ -27,7 +27,8 @@ pub fn (mut app App) json_endpoint() {
pub fn (mut app App) index() {
app.cnt++
$vweb.html()
app.vweb.text('Hello world from vweb')
//$vweb.html()
}
pub fn (mut app App) reset() {