mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix vweb tutorial project; clean up gg functions a bit
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
json
|
||||
)
|
||||
|
||||
struct App {
|
||||
pub struct App {
|
||||
mut:
|
||||
vweb vweb.Context
|
||||
db pg.DB
|
||||
@ -46,6 +46,9 @@ pub fn (app mut App) new() {
|
||||
$vweb.html()
|
||||
}
|
||||
|
||||
pub fn (app mut App) reset() {
|
||||
}
|
||||
|
||||
pub fn (app mut App) new_article() {
|
||||
title := app.vweb.form['title']
|
||||
text := app.vweb.form['text']
|
||||
|
Reference in New Issue
Block a user