This is a base page template. All the other template pages implement this interface. {% import "strconv" %} {% interface Page { Title() Content() Script() } %} {% code func FromUInttoString(u *uint) string { if u != nil { return strconv.FormatUint(uint64(*u), 10) } return "" } %} Page prints a page implementing Page interface. {% func PageTemplate(p Page) %}