func (d *Dir) Sub(name string) (next *Dir, err error) {
	dir, ok := d.Dirs[name]
	if !ok {
		err = fmt.Errorf("failed to find subdir %s", name)
		return
	}
	next = &Dir{
		Dir:       dir,
		Templates: make(map[string]Template),
	}
	err = next.Update(true)
	return
}
// Sub returns a subdirectory of the current directory
Sub returns a subdirectory of the current directory
// Sub returns a subdirectory of the current directory
func (d *Dir) Sub(name string) (next *Dir, err error) {
	dir, ok := d.Dirs[name]
	if !ok {
		err = fmt.Errorf("failed to find subdir %s", name)
		return
	}
	next = &Dir{
		Dir:       dir,
		Templates: make(map[string]Template),
	}
	err = next.Update(true)
	return
}
func ( d * Dir ) Sub ( name string ) ( next * Dir , err error ) { dir , ok := d . Dirs [ name ] if ! ok { err = fmt . Errorf ( " " , name ) return } next = & Dir { Dir : dir , Templates : make ( map [ string ] Template ) , } err = next . Update ( true ) return }
Sub returns a subdirectory of the current directory
Sub returns a subdirectory of the current directory