mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vweb: tmpl access to action method vars
This commit is contained in:
parent
cbcdc8434f
commit
70c18fc7b2
3 changed files with 19 additions and 3 deletions
|
@ -28,6 +28,7 @@ pub fn (mut app App) json_endpoint() {
|
|||
pub fn (mut app App) index() {
|
||||
app.cnt++
|
||||
//app.vweb.text('Hello world from vweb')
|
||||
hello := 'Hello world from vweb'
|
||||
$vweb.html()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue