mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vweb: $html
This commit is contained in:
parent
16bf300934
commit
4d5ac1e16d
7 changed files with 88 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue