view/template.go
func Text(name, contentType, charSet string) template {
	if textTemp.Template == nil {
		panic("Function `InitTextTemplates` should be called first.")
	}
	if contentType == "" {
		contentType = ContentTypePlain
	}
	if charSet == "" {
		charSet = CharSetUTF8
	}
	header := make(http.Header)
	header.Set("Content-Type",
		fmt.Sprintf("%s; charset=%s", contentType, charSet))
	return template{&textTemp, name, header}
}
func Text(name, contentType, charSet string) template {
	if textTemp.Template == nil {
		panic("Function `InitTextTemplates` should be called first.")
	}
	if contentType == "" {
		contentType = ContentTypePlain
	}
	if charSet == "" {
		charSet = CharSetUTF8
	}
	header := make(http.Header)
	header.Set("Content-Type",
		fmt.Sprintf("%s; charset=%s", contentType, charSet))
	return template{&textTemp, name, header}
}
// Text retruns a TemplateView witch uses text templates internally.