package main import "io" import "strconv" func init() { ctemplates["forums"] = template_forums } func template_forums(tmpl_forums_vars Page, w io.Writer) { w.Write([]byte(` ` + tmpl_forums_vars.Title + `
`)) if len(tmpl_forums_vars.NoticeList) != 0 { for _, item := range tmpl_forums_vars.NoticeList { w.Write([]byte(`
` + item + `
`)) } } w.Write([]byte(`
`)) if len(tmpl_forums_vars.ItemList) != 0 { for _, item := range tmpl_forums_vars.ItemList { w.Write([]byte(``)) } } w.Write([]byte(`
`)) }