mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: tmpl access to action method vars
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
test <b>app</b>
|
||||
|
||||
Test <b>app</b>
|
||||
<br>
|
||||
|
||||
<h1>@hello</h1>
|
||||
<hr>
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user