blob: a8c921a876d4aa88ebf4be92ecd45e70400e4a49 (
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
26
27
28
29
30
|
# useful especially if you have multiple guestbooks running
# serve, dump and del commands will default to this
# use the -g flag to override
default_guestbook = "my_guestbook"
# 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}}"""
|