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

vweb: $html

This commit is contained in:
Alexander Medvednikov
2020-06-06 21:36:24 +02:00
parent 16bf300934
commit 4d5ac1e16d
7 changed files with 88 additions and 9 deletions

View File

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