func (c *Category) Render(src, dst *content.Dir, force bool) (err error) {
	sub, ok := dst.Subs[c.name]
	if !ok {
		if _, err = dst.Mkdir(c.name); err != nil {
			return
		}
		if sub, err = content.NewDir(filepath.Join(dst.Path, c.name)); err != nil {
			return err
		}
		dst.Subs[c.name] = sub
	}
	c.setPages(src)
	out, err := c.applyTemplates()
	if err != nil {
		return err
	}
	return writeHTML(sub, "index.html", out)
}
// Render generates HTML for this Category, using the specified templates
// TODO: figure out how to not do this all the time
Render generates HTML for this Category, using the specified templates
TODO: figure out how to not do this all the time
// Render generates HTML for this Category using the specified templates // TODO : figure out how to not do this all the time
func (c *Category) Render(src, dst *content.Dir, force bool) (err error) {
	sub, ok := dst.Subs[c.name]
	if !ok {
		if _, err = dst.Mkdir(c.name); err != nil {
			return
		}
		if sub, err = content.NewDir(filepath.Join(dst.Path, c.name)); err != nil {
			return err
		}
		dst.Subs[c.name] = sub
	}
	c.setPages(src)
	out, err := c.applyTemplates()
	if err != nil {
		return err
	}
	return writeHTML(sub, "index.html", out)
}
func ( c * Category ) Render ( src , dst * content . Dir , force bool ) ( err error ) { sub , ok := dst . Subs [ c . name ] if ! ok { if _ , err = dst . Mkdir ( c . name ) ; err != nil { return } if sub , err = content . NewDir ( filepath . Join ( dst . Path , c . name ) ) ; err != nil { return err } dst . Subs [ c . name ] = sub } c . setPages ( src ) out , err := c . applyTemplates ( ) if err != nil { return err } return writeHTML ( sub , " " , out ) }
Render generates HTML for this Category, using the specified templates
TODO: figure out how to not do this all the time
Render generates HTML for this Category using the specified templates TODO : figure out how to not do this all the time