aboutsummaryrefslogtreecommitdiffstats
path: root/guestbook.toml
blob: 0a1c7c04468f778e729d781615fab4dcdc32b4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# the idea is to have a single database but different
# tables for each guestbook (if any)
[database]
username = "guestbook"
password = "guestbookpass"
location = "tcp(127.0.0.1:3306)"
db_name  = "guestbook"
params   = "charset=utf8mb4&parseTime=True&loc=Local"

[my_guestbook]
port = 2222
path = "/sign"
validation_string = ""
success_redirect = "/success"
error_redirect = "/error"
template = """
{{range .}}
{{print "{{"}}
  guestbook_entry(
    name=\"{{.Name}}\",
    website=\"{{.Website}}\",
    message=\"{{.Message}}\"
  )
{{print "}}"}}
{{end}}"""