helper_method_conditional_comment.go
func (e *helperMethodConditionalComment) WriteTo(w io.Writer) (int64, error) {
	var bf bytes.Buffer

	// Write an open tag.
	bf.WriteString(e.opts.DelimLeft)
	bf.WriteString(preDefinedFuncNameHTML)
	bf.WriteString(space)
	bf.WriteString(doubleQuote)
	bf.WriteString(lt)
	bf.WriteString(exclamation)
	bf.WriteString(doubleQuote)
	bf.WriteString(e.opts.DelimRight)
	if e.commentType == commentTypeHidden {
		bf.WriteString(hyphen)
		bf.WriteString(hyphen)
	}
	bf.WriteString(bracketOpen)
	bf.WriteString("if ")
	bf.WriteString(e.condition)
	bf.WriteString(bracketClose)
	bf.WriteString(gt)

	bf.WriteString(lf)

	// Write the children's HTML.
	if i, err := e.writeChildren(&bf); err != nil {
		return i, err
	}

	// Write a close tag.
	bf.WriteString(e.opts.DelimLeft)
	bf.WriteString(preDefinedFuncNameHTML)
	bf.WriteString(space)
	bf.WriteString(doubleQuote)
	bf.WriteString(lt)
	bf.WriteString(exclamation)
	bf.WriteString(doubleQuote)
	bf.WriteString(e.opts.DelimRight)
	bf.WriteString(bracketOpen)
	bf.WriteString("endif")
	bf.WriteString(bracketClose)
	if e.commentType == commentTypeHidden {
		bf.WriteString(hyphen)
		bf.WriteString(hyphen)
	}
	bf.WriteString(gt)

	// Write the buffer.
	i, err := w.Write(bf.Bytes())

	return int64(i), err
}
func (e *helperMethodConditionalComment) WriteTo(w io.Writer) (int64, error) {
	var bf bytes.Buffer

	// Write an open tag.
	bf.WriteString(e.opts.DelimLeft)
	bf.WriteString(preDefinedFuncNameHTML)
	bf.WriteString(space)
	bf.WriteString(doubleQuote)
	bf.WriteString(lt)
	bf.WriteString(exclamation)
	bf.WriteString(doubleQuote)
	bf.WriteString(e.opts.DelimRight)
	if e.commentType == commentTypeHidden {
		bf.WriteString(hyphen)
		bf.WriteString(hyphen)
	}
	bf.WriteString(bracketOpen)
	bf.WriteString("if ")
	bf.WriteString(e.condition)
	bf.WriteString(bracketClose)
	bf.WriteString(gt)

	bf.WriteString(lf)

	// Write the children's HTML.
	if i, err := e.writeChildren(&bf); err != nil {
		return i, err
	}

	// Write a close tag.
	bf.WriteString(e.opts.DelimLeft)
	bf.WriteString(preDefinedFuncNameHTML)
	bf.WriteString(space)
	bf.WriteString(doubleQuote)
	bf.WriteString(lt)
	bf.WriteString(exclamation)
	bf.WriteString(doubleQuote)
	bf.WriteString(e.opts.DelimRight)
	bf.WriteString(bracketOpen)
	bf.WriteString("endif")
	bf.WriteString(bracketClose)
	if e.commentType == commentTypeHidden {
		bf.WriteString(hyphen)
		bf.WriteString(hyphen)
	}
	bf.WriteString(gt)

	// Write the buffer.
	i, err := w.Write(bf.Bytes())

	return int64(i), err
}
// WriteTo writes data to w.