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