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
No known key found for this signature in database
GPG key ID: C12F7136C08206F1
3 changed files with 19 additions and 3 deletions

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