asankov/gira

Define struct that will be passed onto template to render

Closed this issue · 1 comments

something like templateData that will contains everything used in any templates, like:

type templateData struct {
    Error string
    Flash string
    UserData *models.User
    GameData *models.Game
}

Closed in #55