route/vendor/github.com/alecthomas/template
Cadey Ratio 50c1deaa7d
change from vendor to dep
2017-10-06 08:29:20 -07:00
..
parse change from vendor to dep 2017-10-06 08:29:20 -07:00
testdata change from vendor to dep 2017-10-06 08:29:20 -07:00
LICENSE change from vendor to dep 2017-10-06 08:29:20 -07:00
README.md change from vendor to dep 2017-10-06 08:29:20 -07:00
doc.go vendor dependencies 2017-04-28 21:19:30 -07:00
example_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
examplefiles_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
examplefunc_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
exec.go vendor dependencies 2017-04-28 21:19:30 -07:00
exec_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
funcs.go vendor dependencies 2017-04-28 21:19:30 -07:00
helper.go vendor dependencies 2017-04-28 21:19:30 -07:00
multi_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
template.go vendor dependencies 2017-04-28 21:19:30 -07: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