helper_method_include.go
func (e *helperMethodInclude) WriteTo(w io.Writer) (int64, error) {
	var s string

	if e.pipeline == "" {
		s = fmt.Sprintf(actionTemplate, e.opts.DelimLeft, e.templateName, e.opts.DelimRight)
	} else {
		s = fmt.Sprintf(actionTemplateWithPipeline, e.opts.DelimLeft, e.templateName, e.pipeline, e.opts.DelimRight)
	}

	i, err := w.Write([]byte(s))

	return int64(i), err
}
func (e *helperMethodInclude) WriteTo(w io.Writer) (int64, error) {
	var s string

	if e.pipeline == "" {
		s = fmt.Sprintf(actionTemplate, e.opts.DelimLeft, e.templateName, e.opts.DelimRight)
	} else {
		s = fmt.Sprintf(actionTemplateWithPipeline, e.opts.DelimLeft, e.templateName, e.pipeline, e.opts.DelimRight)
	}

	i, err := w.Write([]byte(s))

	return int64(i), err
}
func ( e * helperMethodInclude ) WriteTo ( w io . Writer ) ( int64 , error ) { var s string if e . pipeline == " " { s = fmt . Sprintf ( actionTemplate , e . opts . DelimLeft , e . templateName , e . opts . DelimRight ) } else { s = fmt . Sprintf ( actionTemplateWithPipeline , e . opts . DelimLeft , e . templateName , e . pipeline , e . opts . DelimRight ) } i , err := w . Write ( [ ] byte ( s ) ) return int64 ( i ) , err }
// WriteTo writes data to w.
WriteTo writes data to w .