func NewSite(conf *config.Site, tmpls *templates.Tree) (site *Site, err error) {
	layout, err := tmpls.Root.Get("layout")
	if err != nil {
		return
	}
	site = &Site{
		Config: conf,
		layout: layout,
		tmpls:  tmpls,
	}
	return
}
// NewSite creates a Site from a configuration and template tree
NewSite creates a Site from a configuration and template tree
// NewSite creates a Site from a configuration and template tree
func NewSite(conf *config.Site, tmpls *templates.Tree) (site *Site, err error) {
	layout, err := tmpls.Root.Get("layout")
	if err != nil {
		return
	}
	site = &Site{
		Config: conf,
		layout: layout,
		tmpls:  tmpls,
	}
	return
}
func NewSite ( conf * config . Site , tmpls * templates . Tree ) ( site * Site , err error ) { layout , err := tmpls . Root . Get ( " " ) if err != nil { return } site = & Site { Config : conf , layout : layout , tmpls : tmpls , } return }
NewSite creates a Site from a configuration and template tree
NewSite creates a Site from a configuration and template tree