} | } | ||||
} | } | ||||
// JSON render content as JSON | |||||
// HTMLString renders string as HTML | |||||
func (b *Base) HTMLString(status int, html string) { | func (b *Base) HTMLString(status int, html string) { | ||||
b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8") | b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8") | ||||
b.Resp.WriteHeader(status) | b.Resp.WriteHeader(status) |