func NewDir(path string) (d *Dir, err error) {
	dir, err := file.NewDir(path)
	if err != nil {
		return
	}
	d = &Dir{
		Dir:       dir,
		Templates: make(map[string]Template),
	}
	err = d.Update(true)
	return
}
// NewDir creates a Dir from the specified path, recursively
NewDir creates a Dir from the specified path, recursively
// NewDir creates a Dir from the specified path recursively
func NewDir(path string) (d *Dir, err error) {
	dir, err := file.NewDir(path)
	if err != nil {
		return
	}
	d = &Dir{
		Dir:       dir,
		Templates: make(map[string]Template),
	}
	err = d.Update(true)
	return
}
func NewDir ( path string ) ( d * Dir , err error ) { dir , err := file . NewDir ( path ) if err != nil { return } d = & Dir { Dir : dir , Templates : make ( map [ string ] Template ) , } err = d . Update ( true ) return }
NewDir creates a Dir from the specified path, recursively
NewDir creates a Dir from the specified path recursively