func (v *Item) SetVars(vars map[string]interface{}) {
	v.vars = vars
}
SetVars sets the template variable map.
package view
import (
	"html/template"
	"net/http"
	"path/filepath"
)
type Item struct {
	extension string
	folder    string
	baseTemplate string
	template     string
	vars         map[string]interface{}
}
func New(folder string, extension string) *Item {
	v := new(Item)
	v.SetFolder(folder)
	v.SetExtension(extension)
	v.SetBaseTemplate("base")
	v.SetTemplate("default")
	v.SetVars(map[string]interface{}{})
	return v
}
func (v *Item) SetFolder(s string) {
	v.folder = s
}
func (v *Item) SetExtension(s string) {
	v.extension = s
}
func (v *Item) SetBaseTemplate(s string) {
	v.baseTemplate = filepath.Join(v.folder, s)
}
func (v *Item) SetTemplate(s string) {
	v.template = filepath.Join(v.folder, s)
}
func (v *Item) AddVar(key string, value interface{}) {
	v.vars[key] = value
}
func (v *Item) DelVar(key string) {
	delete(v.vars, key)
}
func (v *Item) GetVar(key string) interface{} {
	value, ok := v.vars[key]
	if !ok {
		return nil
	}
	return value
}