func New(layout string, files ...string) *View {
	files = append(layoutFiles(), files...)

	t := template.Must(template.New("html").
		Funcs(getFuncMap()).
		ParseFiles(files...))

	return &View{
		template: t,
		layout:   layout,
	}
}
// New creates a new view with the given layout name (created with a "define" block in the layout directory) and the specified template files
New creates a new view with the given layout name (created with a "define" block in the layout directory) and the specified template files
// New creates a new view with the given layout name ( created with a " define " block in the layout directory ) and the specified template files
func New(layout string, files ...string) *View {
	files = append(layoutFiles(), files...)
	t := template.Must(template.New("html").
		Funcs(getFuncMap()).
		ParseFiles(files...))
	return &View{
		template: t,
		layout:   layout,
	}
}
func New ( layout string , files ... string ) * View { files = append ( layoutFiles ( ) , files ... ) t := template . Must ( template . New ( " " ) . Funcs ( getFuncMap ( ) ) . ParseFiles ( files ... ) ) return & View { template : t , layout : layout , } }
New creates a new view with the given layout name (created with a "define" block in the layout directory) and the specified template files
New creates a new view with the given layout name ( created with a " define " block in the layout directory ) and the specified template files