prometheus/vendor/github.com/alecthomas/template
Fabian Reinartz 8088600202 vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
..
parse vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
LICENSE vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
README.md vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
doc.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
exec.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
funcs.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
helper.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
template.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00

README.md

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