func (i *Index) applyTemplates() (out string, err error) {
	var content strings.Builder
	if err = i.template.Execute(&content, i); err != nil {
		return
	}
	i.Page.Content = content.String()
	content.Reset()
	if err = i.layout.Execute(&content, i); err != nil {
		return
	}
	out = content.String()
	return
}
// applyTemplates generates HTML for this Index, using the specified templates
applyTemplates generates HTML for this Index, using the specified templates
// applyTemplates generates HTML for this Index using the specified templates
func (i *Index) applyTemplates() (out string, err error) {
	var content strings.Builder
	if err = i.template.Execute(&content, i); err != nil {
		return
	}
	i.Page.Content = content.String()
	content.Reset()
	if err = i.layout.Execute(&content, i); err != nil {
		return
	}
	out = content.String()
	return
}
func ( i * Index ) applyTemplates ( ) ( out string , err error ) { var content strings . Builder if err = i . template . Execute ( & content , i ) ; err != nil { return } i . Page . Content = content . String ( ) content . Reset ( ) if err = i . layout . Execute ( & content , i ) ; err != nil { return } out = content . String ( ) return }
applyTemplates generates HTML for this Index, using the specified templates
applyTemplates generates HTML for this Index using the specified templates