1
0
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:
Alexander Medvednikov
2020-01-15 22:17:40 +01:00
parent 4f8848f658
commit de3ad2b04f
3 changed files with 25 additions and 13 deletions

View File

@ -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']