clair/vendor/github.com/alecthomas/template
2015-11-13 14:11:28 -05:00
..
parse Initial commit 2015-11-13 14:11:28 -05:00
doc.go Initial commit 2015-11-13 14:11:28 -05:00
exec.go Initial commit 2015-11-13 14:11:28 -05:00
funcs.go Initial commit 2015-11-13 14:11:28 -05:00
helper.go Initial commit 2015-11-13 14:11:28 -05:00
README.md Initial commit 2015-11-13 14:11:28 -05:00
template.go Initial commit 2015-11-13 14:11:28 -05:00

Go's text/template package with newline elision

This is a fork of Go 1.4's text/template package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline.

eg.

{{if true}}\
hello
{{end}}\

Will result in:

hello\n

Rather than:

\n
hello\n
\n