diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-06 12:38:32 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-06 12:38:32 +0530 |
commit | 6c49d1ec3153852f0e5d4cff334a1bc0476f9dce (patch) | |
tree | 033bf3d95e5c9f8bd2205591355ddc468d4825ab /guestbook.toml |
first commitv1.0.0
Diffstat (limited to 'guestbook.toml')
-rw-r--r-- | guestbook.toml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/guestbook.toml b/guestbook.toml new file mode 100644 index 0000000..0a1c7c0 --- /dev/null +++ b/guestbook.toml @@ -0,0 +1,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}}""" |