func (d *Dir) Render(src, dst *content.Dir, force bool) error {
	for name := range dst.Dirs {
		if _, ok := src.Dirs[name]; ok {
			continue
		}
		if err := dst.RemoveAll(name); err != nil {
			return err
		}
	}
	d.Pages = src.Pages
	if err := d.renderIndex(src, dst, force); err != nil {
		return err
	}
	if err := d.renderPages(src, dst, force); err != nil {
		return err
	}
	return d.renderDirs(src, dst, force)
}
// Render updates the contents of a destination directory from a source directory, for a given Dir config
Render updates the contents of a destination directory from a source directory, for a given Dir config
// Render updates the contents of a destination directory from a source directory for a given Dir config
func (d *Dir) Render(src, dst *content.Dir, force bool) error {
	for name := range dst.Dirs {
		if _, ok := src.Dirs[name]; ok {
			continue
		}
		if err := dst.RemoveAll(name); err != nil {
			return err
		}
	}
	d.Pages = src.Pages
	if err := d.renderIndex(src, dst, force); err != nil {
		return err
	}
	if err := d.renderPages(src, dst, force); err != nil {
		return err
	}
	return d.renderDirs(src, dst, force)
}
func ( d * Dir ) Render ( src , dst * content . Dir , force bool ) error { for name := range dst . Dirs { if _ , ok := src . Dirs [ name ] ; ok { continue } if err := dst . RemoveAll ( name ) ; err != nil { return err } } d . Pages = src . Pages if err := d . renderIndex ( src , dst , force ) ; err != nil { return err } if err := d . renderPages ( src , dst , force ) ; err != nil { return err } return d . renderDirs ( src , dst , force ) }
Render updates the contents of a destination directory from a source directory, for a given Dir config
Render updates the contents of a destination directory from a source directory for a given Dir config