Пример #1
0
func Test() string {
	var _buffer bytes.Buffer
	_buffer.WriteString("<html>\n\n\n    aaaa\n\n    \n     extends bbb\n\n\n    \n     ")
	for i := 0; i < 10; i++ {

		_buffer.WriteString("<p>")
		_buffer.WriteString(gotpl.HTMLEscape(i))
		_buffer.WriteString("</p>")

	}
	_buffer.WriteString("\n\n\n\ncurPage int    <div>curPage is: ")
	_buffer.WriteString(gotpl.HTMLEscape(curPage))
	_buffer.WriteString(" </div>\n\n\n</html>")

	return _buffer.String()
}
Пример #2
0
func Base() string {
	var _buffer bytes.Buffer
	_buffer.WriteString("<html>\n\n\n    aaaa\n\n    \n        bbb\n    \n\n    \n        ccc\n    \n\n\ncurPage int    <div>curPage is: ")
	_buffer.WriteString(gotpl.HTMLEscape(curPage))
	_buffer.WriteString(" </div>\n\n\n</html>")

	return _buffer.String()
}