func (v *Item) AddVar(key string, value interface{}) {
	v.vars[key] = value
}
AddVar adds a variable to 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)
}