1
0
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:
joe-conigliaro
2020-06-07 21:26:47 +10:00
parent cbcdc8434f
commit 70c18fc7b2
3 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,4 @@
test <b>app</b>
Test <b>app</b>
<br>
<h1>@hello</h1>
<hr>

View File

@ -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()
}